Skip to content

Instantly share code, notes, and snippets.

@dcolucci
Last active March 9, 2017 21:03
Show Gist options
  • Save dcolucci/a0b071291bf7eb66e3f58c7e61af775e to your computer and use it in GitHub Desktop.
Save dcolucci/a0b071291bf7eb66e3f58c7e61af775e to your computer and use it in GitHub Desktop.

Objective

Get all of the apps running with the latest hieradata updates.

Steps

1. ssh into prod GD box
  • see current IP list here
2. get latest hieradata updates
  • run sudo puppet agent -t

  • you will see some output run through which should take 5-10 seconds:

-bash-4.2$ sudo puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts

Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration.

  If you want to list systemd services use 'systemctl list-unit-files'.
  To see services enabled on particular target use
  'systemctl list-dependencies [target]'.

Info: Caching catalog for i-0ffddc406707f2515 Info: Applying configuration version '1489090932' Notice: Finished catalog run in 4.31 seconds


##### 3. restart node process
* run `sudo systemctl restart cnnodejs-gd.service`
* you will not see any output, but should see no errors
* if you really want to see it restart - tail the application log: `tail -f cn/runtime/gd/nodejs/logs/app.log` (you will see a message in the log tail like "server running on port 8081" when it comes back up)


##### 4. `exit`!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment