Ask Your Question

Modify a module to suit my needs. Newbie

asked 2014-08-19 07:40:12 -0600

the_scott gravatar image

updated 2014-08-19 11:45:13 -0600

ramindk gravatar image

Good morning everyone, I am trying to make this module suit my needs. 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/":
    mode   => '0444',
    owner  => 'username',
    group  => 'username',
    source => 'puppet:///modules/ scriptpull/',
edit retag flag offensive close merge delete


Having extra spaces in the `source` tag surely isn't helping

ethrbunny gravatar imageethrbunny ( 2014-08-19 08:40:14 -0600 )edit

You should include the error if any, logs as they relate to the problem, and what you expect to happen vs what actually happened.

ramindk gravatar imageramindk ( 2014-08-19 11:45:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-19 13:07:11 -0600

the_scott gravatar image

Hi thanks for the replies, I lucked out and a new hire started on Monday with my company that happens to be a puppet expert. We have found that with this server I have inherited that the previous team set everything up in a very poor backwards way.
Again thanks for the help but we found the trouble!


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-08-19 07:40:12 -0600

Seen: 69 times

Last updated: Aug 19 '14