Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. sudo mkdir /etc/puppet/modules/test
  2. sudo mkdir /etc/puppet/modules/test/manifests
  3.  
  4. sudo vim /etc/puppet/modules/test/manifests/test.pp
  5.  
  6. file { '/etc/fuse.conf':
  7. ensure => present,
  8. }->
  9. file_line { 'Append a line to /etc/fuse.conf':
  10. path => '/etc/fuse.conf',
  11. line => 'Want to add this line as a test',
  12. }
  13.  
  14. puppet apply /etc/puppet/modules/test/manifests/test.pp
  15.  
  16. [root@foreman-staging tmp]# puppet apply /etc/puppet/modules/test/manifests/test.pp
  17. Notice: Compiled catalog for foreman-staging.kapsch.local in environment production in 0.18 seconds
  18. Notice: /Stage[main]/Main/File[/etc/fuse.conf]/ensure: created
  19. Notice: /Stage[main]/Main/File_line[Append a line to /etc/fuse.conf]/ensure: created
  20. Notice: Finished catalog run in 0.24 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement