Modify a module to suit my needs. Newbie
Good morning everyone, I am trying to make this module suit my needs. https://forge.puppetlabs.com/juliakre... I have it mostly working I have the .s3cfg file creating and s3cmd is installing on all of my Ubuntu servers using PuppetEnterprise with 100 Ubuntu Servers.
However what I want to do different is rather than a cron job running s3cmd sync. I'd like to use a bash script that I have already written. Reason being my script creates a bucket in S3 with the server's hostname and performs a sync from there.
I'm hitting a snag the cronjob that is being loaded on my nodes is still as written in the module and does not push my bash script. I have added how I am trying to get the script out there.
I also understand I am asking a lot here and I also have to wait till October to take my 1st puppet labs course. And I deeply appreciate any help I can get.
class myfile {
file { '/username/s3sync':
ensure => directory,
mode => '0755',
owner => 'username',
group => 'username',
}
file { "/username/s3sync/s3sync.sh":
mode => '0444',
owner => 'username',
group => 'username',
source => 'puppet:///modules/ scriptpull/s3sync.sh',
}
}
Having extra spaces in the `source` tag surely isn't helping
You should include the error if any, logs as they relate to the problem, and what you expect to happen vs what actually happened.