This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 4th, 2014  |  syntax: Ruby  |  size: 1.81 KB  |  views: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # This is a simple puppet manifest that bootstraps librarian-puppet
  2.  
  3.   # Run librarian-puppet if Puppetfile changed
  4.   file { '/etc/puppet/Puppetfile':
  5.     mode   => '0644',
  6.     owner  => root,
  7.     group  => root,
  8.     source => '/vagrant/Puppetfile';
  9.   }
  10.  
  11.   exec { 'run librarian-puppet':
  12.     environment => ['HOME=/root'],
  13.     command     => '/usr/bin/librarian-puppet install',
  14.     cwd         => '/etc/puppet',
  15.     refreshonly => true,
  16.     subscribe   => File['/etc/puppet/Puppetfile'],
  17.     path        => '/usr/bin:/usr/sbin:/bin',
  18.     require     => [ File['/etc/puppet/Puppetfile'],
  19.                     Package['librarian-puppet'], ],
  20.   }
  21.  
  22.   # Run librarian-puppet if Puppetfile changed
  23.   file { '/etc/puppet/Puppetfile':
  24.     mode   => '0644',
  25.     owner  => root,
  26.     group  => root,
  27.     source => '/vagrant/Puppetfile';
  28.   }
  29.  
  30.   exec { 'run librarian-puppet':
  31.     environment => ['HOME=/root'],
  32.     command     => '/usr/bin/librarian-puppet install',
  33.     cwd         => '/etc/puppet',
  34.     refreshonly => true,
  35.     subscribe   => File['/etc/puppet/Puppetfile'],
  36.     path        => '/usr/bin:/usr/sbin:/bin',
  37.     require     => [ File['/etc/puppet/Puppetfile'],
  38.                     Package['librarian-puppet'], ],
  39.   }
  40.  
  41.   # Run librarian-puppet if Puppetfile changed
  42.   file { '/etc/puppet/Puppetfile':
  43.     mode   => '0644',
  44.     owner  => root,
  45.     group  => root,
  46.     source => '/vagrant/Puppetfile';
  47.   }
  48.  
  49.   exec { 'run librarian-puppet':
  50.     environment => ['HOME=/root'],
  51.     command     => '/usr/bin/librarian-puppet install',
  52.     cwd         => '/etc/puppet',
  53.     refreshonly => true,
  54.     subscribe   => File['/etc/puppet/Puppetfile'],
  55.     path        => '/usr/bin:/usr/sbin:/bin',
  56.     require     => [ File['/etc/puppet/Puppetfile'],
  57.                     Package['librarian-puppet'], ],
  58.   }
clone this paste RAW Paste Data