| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 1 class rietveld( | 1 class rietveld( |
| 2 $domain, | 2 $domain, |
| 3 $certificate, | 3 $certificate, |
| 4 $private_key, | 4 $private_key, |
| 5 $is_default=false | 5 $is_default = false, |
| 6 $fixtures = hiera('rietveld::fixtures', {}), | |
| 6 ) inherits private::rietveld { | 7 ) inherits private::rietveld { |
| 7 | 8 |
| 8 include nginx | 9 include nginx |
| 9 $django_home = '/home/rietveld/django-gae2django' | 10 $django_home = '/home/rietveld/django-gae2django' |
| 10 $rietveld_home = "${django_home}/examples/rietveld" | 11 $rietveld_home = "${django_home}/examples/rietveld" |
| 11 | 12 |
| 12 Exec { | 13 Exec { |
| 13 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', | 14 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', |
| 14 } | 15 } |
| 15 | 16 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 user => 'rietveld', | 113 user => 'rietveld', |
| 113 } | 114 } |
| 114 | 115 |
| 115 file {$destination: | 116 file {$destination: |
| 116 ensure => $ensure, | 117 ensure => $ensure, |
| 117 content => $content, | 118 content => $content, |
| 118 source => $source, | 119 source => $source, |
| 119 owner => 'rietveld', | 120 owner => 'rietveld', |
| 120 mode => 0640, | 121 mode => 0640, |
| 121 notify => $ensure ? { | 122 notify => $ensure ? { |
| 122 present => Exec[$destination], | 123 present => Exec[$destination], |
|
Felix Dahlke
2015/03/21 21:08:52
So, when the fixture changes, the loaddata call is
mathias
2015/03/21 23:16:47
Indeed it does. Of course this is still not meant
| |
| 123 default => [], | 124 default => [], |
| 124 } | 125 } |
| 125 } | 126 } |
| 126 } | 127 } |
| 127 | 128 |
| 128 $fixtures = hiera('rietveld_fixtures', {}) | |
| 129 create_resources(rietveld::fixture, $fixtures) | 129 create_resources(rietveld::fixture, $fixtures) |
| 130 } | 130 } |
| LEFT | RIGHT |