|
72 | 72 | package {['policycoreutils', 'checkpolicy']:
|
73 | 73 | ensure => 'latest',
|
74 | 74 | } ->
|
75 |
| - file { 'selinux template': |
| 75 | + file {'selinux template': |
76 | 76 | path => '/tmp/nginx.te',
|
77 | 77 | ensure => file,
|
78 | 78 | content => template('puppet/unicorn_selinux_template'),
|
79 | 79 | notify => Exec['building_selinux_module_from_template'],
|
80 |
| - } -> |
81 |
| - exec { 'building_selinux_module_from_template': |
| 80 | + } |
| 81 | + exec {'building_selinux_module_from_template': |
82 | 82 | path => [ "/usr/bin", "/usr/local/bin" ],
|
83 | 83 | command => 'checkmodule -M -m -o /tmp/nginx.mod /tmp/nginx.te',
|
84 | 84 | refreshonly => true,
|
85 |
| - } -> |
86 |
| - exec { 'building selinux policy package from module': |
87 |
| - path => [ "/usr/bin", "/usr/local/bin" ], |
88 |
| - command => 'semodule_package -o /tmp/nginx.pp -m /tmp/nginx.mod', |
89 |
| - } -> |
90 |
| - file { "/usr/share/selinux/targeted/nginx.pp": |
| 85 | + notify => Exec['building_selinux_policy_package_from_module'], |
| 86 | + } |
| 87 | + exec {'building_selinux_policy_package_from_module': |
| 88 | + path => [ "/usr/bin", "/usr/local/bin" ], |
| 89 | + command => 'semodule_package -o /tmp/nginx.pp -m /tmp/nginx.mod', |
| 90 | + refreshonly => true, |
| 91 | + } |
| 92 | + file {'/usr/share/selinux/targeted/nginx.pp': |
91 | 93 | source => '/tmp/nginx.pp',
|
92 |
| - } -> |
93 |
| - selmodule{'nginx': |
| 94 | + require => Exec['building_selinux_policy_package_from_module'], |
| 95 | + } |
| 96 | + selmodule {'nginx': |
94 | 97 | ensure => 'present',
|
95 | 98 | syncversion => true,
|
| 99 | + require => File['/usr/share/selinux/targeted/nginx.pp'], |
96 | 100 | }
|
97 | 101 | }
|
98 | 102 | # hacky vhost
|
|
0 commit comments