Hi,David,
thank you for the quick reply, I am new to resource type define so may need your help to troubleshoot:
mycode:
$db_setup_home = "${dbnamehome}/dbs/create_${dbname}"
define rac_script($home, $source) {file { "${home}/${name}.txt":content => template("${module_name}/${name}.txt.erb",
mode => '0644',owner => 1001,group => 1000,}}
rac_script {[ 'create_pre_rac_setup','run_this_rac',
'create_catalog','create_database_rac',]:home => "$db_setup_home",source => "$module_name",}
error:
Debug: Caching connection for https://puppet:8140Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '=>' at /etc/puppetlabs/code/environments/production/modules/exadata/manifests/init.pp:152:15 on node node1.example.comWarning: Not using cache on failed catalogError: Could not retrieve catalog; skipping run
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b9b244db-3464-4a17-81b6-aae72e5210ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Since the focus of the Puppet language is declaring resources, most people will want to use iteration to declare many similar resources at once:
$binaries = ["cfacter", "facter", "hiera", "mco", "puppet", "puppetserver"]
# function call with lambda:
$binaries.each |String $binary| {
file {"/usr/bin/$binary":
ensure => link,
target => "/opt/puppetlabs/bin/$binary",
}
}