| OLD | NEW |
| 1 class base ($zone='adblockplus.org') { | 1 class base ($zone='adblockplus.org') { |
| 2 | 2 |
| 3 include postfix, ssh, stdlib | 3 include postfix, ssh, stdlib |
| 4 | 4 |
| 5 package {['mercurial', 'vim', 'emacs', 'debian-goodies', 'htop']: | 5 package {['mercurial', 'vim', 'emacs', 'debian-goodies', 'htop']: |
| 6 ensure => present, | 6 ensure => present, |
| 7 } | 7 } |
| 8 | 8 |
| 9 class {'users': | |
| 10 stage => 'setup', | |
| 11 } | |
| 12 | |
| 13 class {'logrotate': | 9 class {'logrotate': |
| 14 stage => 'runtime', | 10 stage => 'runtime', |
| 15 } | 11 } |
| 16 | 12 |
| 17 $servers = hiera('servers') | 13 $servers = hiera('servers') |
| 18 create_resources(base::explicit_host_record, $servers) | 14 create_resources(base::explicit_host_record, $servers) |
| 19 | 15 |
| 20 define explicit_host_record( | 16 define explicit_host_record( |
| 21 $ip, | 17 $ip, |
| 22 $ssh_public_key = undef, | 18 $ssh_public_key = undef, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 public_key => $public_key, | 45 public_key => $public_key, |
| 50 } | 46 } |
| 51 | 47 |
| 52 # Implicit realization behavior has been introduced by accident in a | 48 # Implicit realization behavior has been introduced by accident in a |
| 53 # previous version, hence it should be kept until class base is obsolete | 49 # previous version, hence it should be kept until class base is obsolete |
| 54 # and the obsolete records have been removed | 50 # and the obsolete records have been removed |
| 55 realize(Host[$title]) | 51 realize(Host[$title]) |
| 56 realize(Sshkey[$title]) | 52 realize(Sshkey[$title]) |
| 57 } | 53 } |
| 58 } | 54 } |
| OLD | NEW |