Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [root@pe-386-master ~]# cat /tmp/test.pp
  2. service { 'foo':
  3. ensure => running,
  4. }
  5.  
  6. Service <| title == 'foo' |> {
  7. ensure => undef,
  8. }
  9. [root@pe-386-master ~]# puppet resource service foo
  10. service { 'foo':
  11. ensure => 'stopped',
  12. enable => 'false',
  13. }
  14. [root@pe-386-master ~]# puppet apply /tmp/test.pp
  15. Notice: Compiled catalog for pe-386-master in environment production in 0.15 seconds
  16. Notice: Finished catalog run in 0.21 seconds
  17. [root@pe-386-master ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement