Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (root@deimos) 66 ~ # find /etc/puppetlabs/ /opt/puppetlabs/ -name vgp\*
- /opt/puppetlabs/puppet/cache/lib/facter/vgp_needs_restart.rb
- (root@deimos) 67 ~ # cat /opt/puppetlabs/puppet/cache/lib/facter/vgp_needs_restart.rb
- # Tell Puppet whether this file already exists on the client.
- Facter.add("vgp_needs_restart") do
- setcode do
- File.exist?("/etc/voalte/restart_vgp.flag")
- end
- end
- (root@deimos) 68 ~ # facter -p vgp_needs_restart
- false
- (root@deimos) 69 ~ # facter -jp vgp_needs_restart
- {
- "vgp_needs_restart": true
- }
- (root@deimos) 70 ~ # facter --version
- 3.2.0 (commit 148948d795fbdcf6bcf51ed36a73f496775835dc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement