daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top