SHARE
TWEET

Eric-nodes-fixed

a guest May 9th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. node 'wikitest.example.lab' {
  2.  
  3.   class { 'linux': }
  4.   class { 'mediawiki': }
  5.   }
  6.  
  7.  node 'wiki.example.lab' {
  8.  
  9.  
  10.   class { 'linux': }
  11.   class { 'mediawiki': }
  12.         $wikisitename = 'wiki'
  13.         $wikiserver = "http://172.31.0.202"
  14.         $wikidbserver = 'localhost'
  15.         $wikidbname = 'wiki'
  16.         $wikidbuser = 'root'
  17.         $wikidbpassword = 'training'
  18.         $wikiupgradekey = 'puppet'
  19.   }
  20.  
  21. class linux {
  22.  
  23.   $admintools = ['git', 'lynx', 'screen','dos2unix','asciidoc']
  24.  
  25.   package { $admintools:
  26.     ensure  => 'installed',
  27.  
  28.   }
  29.   $ntpservice = $osfamily ? {
  30.     'redhat'  => 'ntpd',
  31.     'debian'  => 'ntp',
  32.     default   => 'ntp',
  33.   }
  34.  
  35.   file { '/info.txt':
  36.     ensure  => 'present',
  37.     content => inline_template("Created by Puppet at <%= Time.now %>\n"),
  38.   }
  39.  
  40.   package {'ntp':
  41.     ensure => 'installed',
  42.   }
  43.  
  44.   service {$ntpservice:
  45.     ensure => 'running',
  46.     enable => true,
  47.   }
  48.  
  49. }
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