8000 Create conf.d directories as symlinks again · guillemcanal/puppet-php@a12c554 · GitHub
[go: up one dir, main page]

Skip to content

Commit a12c554

Browse files
committed
Create conf.d directories as symlinks again
fixes saz#8
1 parent d4925a6 commit a12c554

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

manifests/apache2/config.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
}
1212

1313
file { "${php::params::apache_dir}conf.d":
14-
ensure => directory,
14+
ensure => link,
15+
target => '../conf.d',
16+
force => true,
1517
require => File[$php::params::apache_dir],
1618
notify => Service[$php::params::apache_service_name],
1719
}

manifests/config.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
}
4040

4141
file { "${php::params::cli_dir}conf.d":
42-
ensure => directory,
42+
ensure => link,
43+
target => '../conf.d',
44+
forge => true,
45+
require => File[$php::params::cli_dir],
4346
}
4447
}

manifests/fpm/config.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
}
1212

1313
file { "${php::params::fpm_dir}conf.d":
14-
ensure => directory,
14+
ensure => link,
15+
target => '../conf.d',
16+
force => true,
1517
require => File[$php::params::fpm_dir],
1618
notify => Class['php::fpm::service'],
1719
}

0 commit comments

Comments
 (0)
0