Hi, I am new with Puppet and I am very glad using it, but I have a basic doubt, when I use puppet to install packages to a debian machine with: debian:/etc/puppet# cat manifests/packages/lm-sensors package { lm-sensors: ensure => installed } Does it run apt-get update before installing the package? If not how is the best way to do it? How Puppet deals with packages installations that depends of aswering questions? It assumes yes/no to all questions, and after installation I need to put my configuration? Cheers, Marcos Iuato
On Mar 30, 2007, at 1:26 PM, Marcos Iuato wrote:> Hi, > > I am new with Puppet and I am very glad using it, but I have a basic > doubt, when I use puppet to install packages to a debian machine with: > > debian:/etc/puppet# cat manifests/packages/lm-sensors > package { lm-sensors: > ensure => installed > } > > Does it run apt-get update before installing the package? If not > how is > the best way to do it?You''ll need to run apt-get update on your own. I have it set up to run once a day (using the default ''daily'' schedule).> How Puppet deals with packages installations that depends of aswering > questions? It assumes yes/no to all questions, and after > installation I > need to put my configuration?I haven''t done this much, but I think people are using the preseeding stuff for this. -- When all you have is a nailgun, every problem looks like a messiah. -- Iain Chalmers, ASR --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 30 March 2007 20:26, Marcos Iuato wrote:> Hi, > > I am new with Puppet and I am very glad using it, but I have a basic > doubt, when I use puppet to install packages to a debian machine with: > > debian:/etc/puppet# cat manifests/packages/lm-sensors > package { lm-sensors: > ensure => installed > } > > Does it run apt-get update before installing the package? If not how is > the best way to do it? > > How Puppet deals with packages installations that depends of aswering > questions? It assumes yes/no to all questions, and after installation I > need to put my configuration?You can add preseeding answers via the responsefile parameter. For a bit more information about preseeding, you can look at http://wiki.debian.org/DebianInstaller/Preseed One sad point though is, that preseeded values only are taken into consideration on first installation. If you ever want to change the values on a already installed package, you have to manually change the config files. Regards, David - -- - - hallo... wie gehts heute? - - *hust* gut *rotz* *keuch* - - gott sei dank kommunizieren wir über ein septisches medium ;) -- Matthias Leeb, Uni f. angewandte Kunst, 2005-02-15 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGEMB7/Pp1N6Uzh0URAr5NAJ0fSlmU84LGNX1/xkM2c5FAMuN4QwCghIrJ AVayGw6A3z3qxwX9/sI7B98=B6iD -----END PGP SIGNATURE-----