Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.71 KB | None | 0 0
  1. class testing ( $file = 'testing' ) {
  2.         file { "/tmp/$file":
  3.           ensure => present,
  4.           mode => 0777,
  5.           content => "Testing123"
  6.         }
  7. }
  8. node default {
  9.         file {'/tmp/example-ip':                                            # resource type file and filename
  10.           ensure  => present,                                               # make sure it exists
  11.           mode    => 0644,                                                  # file permissions
  12.           content => "Here is my Public IP Address: ${ipaddress_eth0}.\n",  # note the ipaddress_eth0 fact
  13.         }
  14. }
  15.  
  16. node "office.example.com" {
  17.         class { 'testing' :
  18.                 $file => 'Testing123',
  19.         }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement