-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I?ve just written and released Scaffold (http://github.com/jamtur01/puppet-scaffold) ? a very simple Puppet scaffolding templating tool. It integrates with Puppet to create a variety of Puppet configuration and objects. You can install it via a gem currently: $ sudo gem install scaffold It requires Puppet and will install the templater gem as a dependency. You can then use it like so: * Basic Puppet configuration (creates site.pp, fileserver.conf and supporting material in the Puppet configuration directory): $ scaffold puppet * Modules (it checks the Puppet module path and creates the module in the first module path it finds): $ scaffold module module_name * Nodes (assumes you?ve created the basic Puppet configuration and creates nodes in Puppet configuration directory): $ scaffold node node_name * Classes and Definitions: $ scaffold class module_name class_name $ scaffold define module_name define_name * Functions: $ scaffold function module_name function_name function_type The function type can be statement or rvalue and defaults to statement if omitted. * Types and providers: $ scaffold type module_name type_name I?d welcome feedback, testing, and ideas (and code!) on how to extend it. The idea is that once we?ve got a strong working tool we?ll look to integrate something like the result into Puppet mainline as a provisioning and template system. Regards James Turnbull - -- Author of: * Pro Linux System Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEVAwUBS9/bMiFa/lDkFHAyAQJKWQgA40wqP1cp5JYgF+yNMoa5OLclL/n8cf2r MmThAOfd0FhcRHvF+vGXhU5NHiVSzAX7CrhTYmePA8Os80pMTcmvTgoxMM85FKya /Z7Hvw0PJcnnUSgJVNQWRgd5LciUkAQ/MPmTjjK83y3Sd/SxEOE0lkpoop6pngyq ltUT0kmy9qKm+dUbkQBkfZAPCK12jvAcgO0t3dAlHLoKF3TjlSf9wg3k3BvuJDUr j0Wcae+d+FYLOn7GUXwsqwy3qrKaHp5+VSNzhIKnp1qp+GQEF3qdMhLsC4K84ls7 hgNKG1Vey1IlveMaHyMZIvOQFlBHldPpzVSd1Whqk2zp5r88nPUVWw==P+Y6 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I have *JUST* finished setting up my puppet basics, I have about 15 servers that I was going to use to test. If you require someone to work with on testing scaffold, then feel free to get to me, and we can discuss my setup, and the things you wish to test. I think it might be a good idea that I *don''t* have previous puppet experience, I''d do whatever you ask, no arguments! Bottom Line, I''d like to help test scaffold :) -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of James Turnbull Sent: Tuesday, May 04, 2010 9:31 AM To: puppet-users Subject: [Puppet Users] Introducing Scaffold -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I?ve just written and released Scaffold (http://github.com/jamtur01/puppet-scaffold) ? a very simple Puppet scaffolding templating tool. It integrates with Puppet to create a variety of Puppet configuration and objects. You can install it via a gem currently: $ sudo gem install scaffold It requires Puppet and will install the templater gem as a dependency. You can then use it like so: * Basic Puppet configuration (creates site.pp, fileserver.conf and supporting material in the Puppet configuration directory): $ scaffold puppet * Modules (it checks the Puppet module path and creates the module in the first module path it finds): $ scaffold module module_name * Nodes (assumes you?ve created the basic Puppet configuration and creates nodes in Puppet configuration directory): $ scaffold node node_name * Classes and Definitions: $ scaffold class module_name class_name $ scaffold define module_name define_name * Functions: $ scaffold function module_name function_name function_type The function type can be statement or rvalue and defaults to statement if omitted. * Types and providers: $ scaffold type module_name type_name I?d welcome feedback, testing, and ideas (and code!) on how to extend it. The idea is that once we?ve got a strong working tool we?ll look to integrate something like the result into Puppet mainline as a provisioning and template system. Regards James Turnbull - -- Author of: * Pro Linux System Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEVAwUBS9/bMiFa/lDkFHAyAQJKWQgA40wqP1cp5JYgF+yNMoa5OLclL/n8cf2r MmThAOfd0FhcRHvF+vGXhU5NHiVSzAX7CrhTYmePA8Os80pMTcmvTgoxMM85FKya /Z7Hvw0PJcnnUSgJVNQWRgd5LciUkAQ/MPmTjjK83y3Sd/SxEOE0lkpoop6pngyq ltUT0kmy9qKm+dUbkQBkfZAPCK12jvAcgO0t3dAlHLoKF3TjlSf9wg3k3BvuJDUr j0Wcae+d+FYLOn7GUXwsqwy3qrKaHp5+VSNzhIKnp1qp+GQEF3qdMhLsC4K84ls7 hgNKG1Vey1IlveMaHyMZIvOQFlBHldPpzVSd1Whqk2zp5r88nPUVWw==P+Y6 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nice one James - we (people I work with) had discussed a tool just like this on the weekend - so your timing is eerie :-). I hope for your sake your not psychic and reading my mind ... 2 things dude ... I''m sure they are obvious and you''ve thought of them already. * I notice your shipping a template dir, we obviously want our own to enforce things like puppetdoc style etc. a way to specify a location of our own template dir would be nice. env var/switch whatever. * Your grabbing the first module dir from puppet.conf ... I develop on my desktop quite a bit - so some way to override this and perhaps specify having the module laid out in cwd ... I think in either case a main config file where you can stuff vars for the above would be a modular approach to taking your app forward. Cheers. ken. On May 4, 9:30 am, James Turnbull <ja...@lovedthanlost.net> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I?ve just written and released Scaffold > (http://github.com/jamtur01/puppet-scaffold) ? a very simple Puppet > scaffolding templating tool. It integrates with Puppet to create a > variety of Puppet configuration and objects. > > You can install it via a gem currently: > > $ sudo gem install scaffold > > It requires Puppet and will install the templater gem as a dependency. > > You can then use it like so: > > * Basic Puppet configuration (creates site.pp, fileserver.conf and > supporting material in the Puppet configuration directory): > > $ scaffold puppet > > * Modules (it checks the Puppet module path and creates the module > in the first module path it finds): > > $ scaffold module module_name > > * Nodes (assumes you?ve created the basic Puppet configuration and > creates nodes in Puppet configuration directory): > > $ scaffold node node_name > > * Classes and Definitions: > > $ scaffold class module_name class_name > > $ scaffold define module_name define_name > > * Functions: > > $ scaffold function module_name function_name function_type > > The function type can be statement or rvalue and defaults to > statement if omitted. > > * Types and providers: > > $ scaffold type module_name type_name > > I?d welcome feedback, testing, and ideas (and code!) on how to > extend it. The idea is that once we?ve got a strong working tool > we?ll look to integrate something like the result into Puppet > mainline as a provisioning and template system. > > Regards > > James Turnbull > > - -- > Author of: > * Pro Linux System Administration (http://tinyurl.com/linuxadmin) > * Pulling Strings with Puppet (http://tinyurl.com/pupbook) > * Pro Nagios 2.0 (http://tinyurl.com/pronagios) > * Hardening Linux (http://tinyurl.com/hardeninglinux) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iQEVAwUBS9/bMiFa/lDkFHAyAQJKWQgA40wqP1cp5JYgF+yNMoa5OLclL/n8cf2r > MmThAOfd0FhcRHvF+vGXhU5NHiVSzAX7CrhTYmePA8Os80pMTcmvTgoxMM85FKya > /Z7Hvw0PJcnnUSgJVNQWRgd5LciUkAQ/MPmTjjK83y3Sd/SxEOE0lkpoop6pngyq > ltUT0kmy9qKm+dUbkQBkfZAPCK12jvAcgO0t3dAlHLoKF3TjlSf9wg3k3BvuJDUr > j0Wcae+d+FYLOn7GUXwsqwy3qrKaHp5+VSNzhIKnp1qp+GQEF3qdMhLsC4K84ls7 > hgNKG1Vey1IlveMaHyMZIvOQFlBHldPpzVSd1Whqk2zp5r88nPUVWw=> =P+Y6 > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 7/05/10 2:30 AM, Ken wrote:> Nice one James - we (people I work with) had discussed a tool just > like this on the weekend - so your timing is eerie :-). I hope for > your sake your not psychic and reading my mind ... >I''m not - merely a sign of my growing omniscience. :)> * I notice your shipping a template dir, we obviously want our own to > enforce things like puppetdoc style etc. a way to specify a location > of our own template dir would be nice. env var/switch whatever.That''s easy done. I''ll add that for the next release.> * Your grabbing the first module dir from puppet.conf ... I develop on > my desktop quite a bit - so some way to override this and perhaps > specify having the module laid out in cwd ...Also feasible.> I think in either case a main config file where you can stuff vars for > the above would be a modular approach to taking your app forward.Good idea. I just released a 0.0.2 that fixes a stupid path error. I''ll look at doing a 0.0.3 on the weekend. Thanks James Turnbull - -- Author of: * Pro Linux System Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEVAwUBS+NAuSFa/lDkFHAyAQKB1Qf+OudrC3av5sIp3DNcq33xWzFuf1DmmUFl 4UfgYgiFp+UyOfpnVkAR8kW0OnHeaAY4BqFOvcpudrzW7RZVPqRZ+wVVdEfHMYlj 6ekryVVkQ2aprXz4sV3CO5mwef0Q/px63rMMckdq8pi+7riWREfAsb6e4TI50EFz KE5zgLJ4RrnhVcZI1YIK9PPUS/FMH8yhEwzWWjNURQqKHybuI6Si3VaLE9ctO94c UY1uzRlodH16lnTh7xUhBpeW/HWH67EoRKlntGhRsntEMVyg35YwEOb+jrcfoXqi kLyJyiwuHKEcraRnr53SObtrGP6aObOy0uQS7qU6VJTSo/x9Qopj8w==2Lyt -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Groovy dude. I''ll be watching (cos I like to watch). On May 6, 11:20 pm, James Turnbull <ja...@lovedthanlost.net> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 7/05/10 2:30 AM, Ken wrote: > > > Nice one James - we (people I work with) had discussed a tool just > > like this on the weekend - so your timing is eerie :-). I hope for > > your sake your not psychic and reading my mind ... > > I''m not - merely a sign of my growing omniscience. :) > > > * I notice your shipping a template dir, we obviously want our own to > > enforce things like puppetdoc style etc. a way to specify a location > > of our own template dir would be nice. env var/switch whatever. > > That''s easy done. I''ll add that for the next release. > > > * Your grabbing the first module dir from puppet.conf ... I develop on > > my desktop quite a bit - so some way to override this and perhaps > > specify having the module laid out in cwd ... > > Also feasible. > > > I think in either case a main config file where you can stuff vars for > > the above would be a modular approach to taking your app forward. > > Good idea. > > I just released a 0.0.2 that fixes a stupid path error. I''ll look > at doing a 0.0.3 on the weekend. > > Thanks > > James Turnbull > > - -- > Author of: > * Pro Linux System Administration (http://tinyurl.com/linuxadmin) > * Pulling Strings with Puppet (http://tinyurl.com/pupbook) > * Pro Nagios 2.0 (http://tinyurl.com/pronagios) > * Hardening Linux (http://tinyurl.com/hardeninglinux) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iQEVAwUBS+NAuSFa/lDkFHAyAQKB1Qf+OudrC3av5sIp3DNcq33xWzFuf1DmmUFl > 4UfgYgiFp+UyOfpnVkAR8kW0OnHeaAY4BqFOvcpudrzW7RZVPqRZ+wVVdEfHMYlj > 6ekryVVkQ2aprXz4sV3CO5mwef0Q/px63rMMckdq8pi+7riWREfAsb6e4TI50EFz > KE5zgLJ4RrnhVcZI1YIK9PPUS/FMH8yhEwzWWjNURQqKHybuI6Si3VaLE9ctO94c > UY1uzRlodH16lnTh7xUhBpeW/HWH67EoRKlntGhRsntEMVyg35YwEOb+jrcfoXqi > kLyJyiwuHKEcraRnr53SObtrGP6aObOy0uQS7qU6VJTSo/x9Qopj8w=> =2Lyt > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.