Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Error: Could not retrieve catalog from remote server: Error 400 on SERVER

$
0
0
I am actually trying to run Apache module but getting the following error:: [vagrant@wiki puppet]$ sudo puppet agent --verbose --no-daemonize --onetime Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'Boolean'; expected ')' at /etc/puppet/environments/production/modules/apache/manifests/init.pp:19 on node wiki Notice: Using cached catalog Info: Applying configuration version '1501910423' Error: Could not start Service[undef]: Execution of '/sbin/service undef start' returned 1: undef: unrecognized service Error: /Stage[main]/Linux/Service[undef]/ensure: change from stopped to running failed: Could not start Service[undef]: Execution of '/sbin/service undef start' returned 1: undef: unrecognized service Notice: Finished catalog run in 0.35 seconds Following is my init.pp: class mediawiki { $phpmysql = $osfamily ? { 'redhat' => 'php-mysql', 'debian' => 'php5-mysql', default => 'php-mysql', } package { $phpmysql: ensure => 'present', } if $osfamily == 'redhat' { package { 'php-xml': ensure => 'present', } } class { '::apache': docroot => '/var/www/html', mpm_module => 'prefork', subscribe => Package[$phpmysql], } class { '::apache::mod::php': } }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>