class postgresql::profilechange{
include concat::setup
concat { '/etc/profile':
mode => '0775',
owner => 'root',
group => 'root',
ensure => present,
}
concat::fragment { 'file04_fa':
target => '/etc/profile',
content => "PATH=$PATH:/usr/local/pgsql/bin\n",
order => 01
}
}
Info: Retrieving plugin
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class concat::setup for sys-server on node sys-server
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping runHello,I am looking for an option to add multiple lines to a /etc/bashrc and /etc/profile. I can do this with file_line, but is there any other alternative. file_line does the job but for each line I will have to create a file_line resource, which does not sound good for multiple lines.