Skip to content

Commit

Permalink
Merge pull request voxpupuli#359 from bastelfreak/archlinux2
Browse files Browse the repository at this point in the history
add initial archlinux support
  • Loading branch information
bastelfreak authored Jun 29, 2017
2 parents 171bf45 + d6674a1 commit dc9e9cc
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/globals.pp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@
$default_config_root = '/usr/local/etc'
$default_fpm_pid_file = '/var/run/php-fpm.pid'
}
'Archlinux': {
$default_config_root = '/etc/php'
$default_fpm_pid_file = '/run/php-fpm/php-fpm.pid'
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
Expand Down
27 changes: 27 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,33 @@
$ext_tool_query = undef
$ext_tool_enabled = false
}
'Archlinux': {
$config_root_ini = '/etc/php/conf.d'
$config_root_inifile = '/etc/php/php.ini'
$common_package_names = []
$common_package_suffixes = ['cli', 'common']
$cli_inifile = '/etc/php/php.ini'
$dev_package_suffix = undef
$fpm_pid_file = '/run/php-fpm/php-fpm.pid'
$fpm_config_file = '/etc/php/php-fpm.conf'
$fpm_error_log = '/var/log/php-fpm/error.log'
$fpm_inifile = '/etc/php/php.ini'
$fpm_package_suffix = 'fpm'
$fpm_pool_dir = '/etc/php/php-fpm.d'
$fpm_service_name = 'php-fpm'
$fpm_user = 'root'
$fpm_group = 'root'
$apache_inifile = '/etc/php/php.ini'
$embedded_package_suffix = 'embedded'
$embedded_inifile = '/etc/php/php.ini'
$package_prefix = 'php-'
$compiler_packages = ['gcc', 'make']
$manage_repos = false
$root_group = 'root'
$ext_tool_enable = undef
$ext_tool_query = undef
$ext_tool_enabled = false
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
Expand Down
3 changes: 3 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
},
{
"operatingsystem": "OpenSUSE"
},
{
"operatingsystem": "Archlinux"
}
]
}
4 changes: 4 additions & 0 deletions spec/classes/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
dstfile = case facts[:osfamily]
when 'Debian'
'/etc/php5/fpm/pool.d/www.conf'
when 'Archlinux'
'/etc/php/php-fpm.d/www.conf'
when 'Suse'
'/etc/php5/fpm/pool.d/www.conf'
when 'RedHat'
Expand All @@ -78,6 +80,8 @@
dstfile = case facts[:osfamily]
when 'Debian'
'/etc/php5/fpm/pool.d/www.conf'
when 'Archlinux'
'/etc/php/php-fpm.d/www.conf'
when 'Suse'
'/etc/php5/fpm/pool.d/www.conf'
when 'RedHat'
Expand Down
2 changes: 2 additions & 0 deletions spec/defines/extension_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
etcdir = case facts[:osfamily]
when 'Debian'
'/etc/php5/mods-available'
when 'Archlinux'
'/etc/php/conf.d'
else
'/etc/php.d'
end
Expand Down

0 comments on commit dc9e9cc

Please sign in to comment.