Re: Two puppet shortcuts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/30/2010 07:47 PM, Mike McGrath wrote:
> I've created two puppet shortcuts.  If you have just some script to
> deploy.  You can stick it in modules/scripts/files.  Then just use:
> 
> scripts::generic { 'script_name.sh': }
> 
> and it will automatically put it in /usr/local/bin/script_name.sh on the
> server you include that on.
> 
> 
> The next shortcut is a script / cron combo.  Lets say you have a
> "myscript.cron" and a "myscript.sh"  You can put both files in
> modules/scripts/files then use:
> 
> scripts::script_and_cron { 'myscript': }
> 
> and it will deploy the script to /usr/local/bin/myscript.sh and the cron
> file to /etc/cron.d/myscript.cron
> 
> I did this because both of these use cases exist all over the place and we
> seem to be writing a full class for each, then including it.
> 
> 	-Mike

Rock!  Thanks Mike!

- -- 
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkxUVaUACgkQ4v2HLvE71NVgHACgu7+xvtMYJLNHt+f3Wjd4Xqpl
0asAoJBsQISsShPux+Pm4ju5X6kp+kGd
=Sj5a
-----END PGP SIGNATURE-----
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure



[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux