Mercurial > repos > other > Puppet
view modules/php/manifests/composer.pp @ 466:202aeef575a1
Correct HTTP log paths in LogWatch
It wasn't generating logs because we're not using the normal
pattern - our site name comes _after_ the "access" part, not
before
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Feb 2024 10:10:32 +0000 |
parents | 3fce34f642f1 |
children |
line wrap: on
line source
# Install composer package manager # # === Parameters # # [*source*] # Holds URL to the Composer source file # # [*path*] # Holds path to the Composer executable # # [*channel*] # Holds the Update channel (stable|preview|snapshot|1|2) # # [*proxy_type*] # proxy server type (none|http|https|ftp) # # [*proxy_server*] # specify a proxy server, with port number if needed. ie: https://example.com:8080. # # [*auto_update*] # Defines if composer should be auto updated # # [*max_age*] # Defines the time in days after which an auto-update gets executed # # [*root_group*] # UNIX group of the root user # class php::composer ( String $source = $php::params::composer_source, Stdlib::Absolutepath $path = $php::params::composer_path, Optional[String[1]] $proxy_type = undef, Optional[String[1]] $proxy_server = undef, Php::ComposerChannel $channel = 'stable', Boolean $auto_update = true, Integer $max_age = $php::params::composer_max_age, Variant[Integer, String] $root_group = $php::params::root_group, ) inherits php::params { assert_private() archive { 'download composer': path => $path, source => $source, proxy_type => $proxy_type, proxy_server => $proxy_server, } -> file { $path: mode => '0555', owner => root, group => $root_group, } if $auto_update { class { 'php::composer::auto_update': max_age => $max_age, source => $source, path => $path, channel => $channel, proxy_type => $proxy_type, proxy_server => $proxy_server, } } }