Ask Your Question
0

Modify a module to suit my needs. Newbie

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

the_scott gravatar image

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

ramindk gravatar image

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',
  }
}
edit retag flag offensive close merge delete

Comments

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

ethrbunny gravatar imageethrbunny ( 2014-08-19 08:40:14 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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!

Scott

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

Stats

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

Seen: 69 times

Last updated: Aug 19 '14