You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
I'm very new to Puppet and the example42 modules and I'm trying to get things to work but I'm having some issues.
I have a site.pp file (see below) which defines the source parameter for the puppet class but when I run this I get an error stating "Error: Failed to apply catalog: You cannot specify more than one of content, source, target"
After asking for help I added the template => '' parameter and I've also tried template => undef but both of these have no effect.
As you can see I have also been trying to get source_dir to work but that has its own problems which I'll report in a separate bug. However, it may be of interest that specifying source_dir alone does not work but adding the template => undef does work to some extent in that case.
My site.pp file:
class base_nopuppet {
include openssh
class { 'sudo':
source => [ "puppet:///modules/data/sudo/sudo.conf-${hostname}" , "puppet:///modules/data/sudo/sudo.conf" ],
}
class { 'mailx':
source => [ "puppet:///modules/data/mailx/mailx.conf-${hostname}" , "puppet:///modules/data/mailx/mailx.conf" ],
}
}
class base {
include base_nopuppet
class { 'puppet':
source => "puppet:///modules/data/puppet/puppet.conf",
#source_dir => 'puppet:///modules/data/puppet/conf/',
#source_dir_purge => false,
template => '',
}
}
node default {
include base
}
node 'puppet.cs.ru.is' {
include base_nopuppet
class { 'puppet':
mode => 'server',
source => "puppet:///modules/data/puppet/puppet.conf",
#source_dir => 'puppet:///modules/data/puppet/puppet.conf',
#source_dir_purge => false,
template => '',
}
}
The text was updated successfully, but these errors were encountered:
Thanks for the report, actually the Puppet module was a "special" case in the template management. 45c8e34 allows you to (really) disable the template usage with the parameter:
Hi.
I'm very new to Puppet and the example42 modules and I'm trying to get things to work but I'm having some issues.
I have a site.pp file (see below) which defines the source parameter for the puppet class but when I run this I get an error stating "Error: Failed to apply catalog: You cannot specify more than one of content, source, target"
After asking for help I added the
template => ''
parameter and I've also triedtemplate => undef
but both of these have no effect.As you can see I have also been trying to get source_dir to work but that has its own problems which I'll report in a separate bug. However, it may be of interest that specifying source_dir alone does not work but adding the
template => undef
does work to some extent in that case.My site.pp file:
The text was updated successfully, but these errors were encountered: