Thursday, 2009-04-23

[2009/04/23 00:01:31] @ Log started by gepetto
[2009/04/23 00:01:31] @ Quit: bob2: Read error: 60 (Operation timed out)
[2009/04/23 00:16:37] @ Quit: collier_s: "Leaving"
[2009/04/23 00:22:06] @ markl__ joined channel #puppet
[2009/04/23 00:22:42] @ kingitchy joined channel #puppet
[2009/04/23 00:26:24] @ Quit: d3vilb0x:
[2009/04/23 00:31:54] @ bob2 joined channel #puppet
[2009/04/23 00:32:22] @ bob2 is now known as Guest37195
[2009/04/23 00:33:01] <jmarki> hey, just noticed a "masterhttplog" configuration parameter. does anyone know what does that refer to? puppet now has a webserver?!
[2009/04/23 00:33:46] <chu> puppet transfers files over http
[2009/04/23 00:34:06] <chu> like if you say get file from puppet://puppetmaster/files/fish
[2009/04/23 00:34:07] <chu> yea
[2009/04/23 00:34:50] <jmarki> chu: oh. i was suddenly hopeful of a web-based report/graph viewer. =p
[2009/04/23 00:35:35] <chu> What kind of reports or graphs would you want to see?
[2009/04/23 00:36:26] <jmarki> i'm not sure, still exploring the reporting references
[2009/04/23 00:37:02] <jmarki> basically, i hope for something that will tell me if anything has been updated, when it gets updated
[2009/04/23 00:44:49] <jmarki> ahh... found it... tagmail
[2009/04/23 00:45:51] @ Quit: int: Read error: 111 (Connection refused)
[2009/04/23 00:52:15] @ Quit: Guest37195: Read error: 113 (No route to host)
[2009/04/23 00:52:27] @ Quit: koojoo:
[2009/04/23 00:59:25] @ cw_ joined channel #puppet
[2009/04/23 01:08:19] @ nakano_ is now known as nakano
[2009/04/23 01:09:35] @ rdaugherty joined channel #puppet
[2009/04/23 01:14:10] @ Quit: jmarki: "Leaving"
[2009/04/23 01:23:42] @ Quit: philip: Nick collision from services.
[2009/04/23 01:23:53] @ philip_ joined channel #puppet
[2009/04/23 01:34:02] @ Quit: fujin:
[2009/04/23 01:34:03] @ voixd joined channel #puppet
[2009/04/23 01:37:15] @ Quit: cw_: "Leaving..."
[2009/04/23 01:41:31] @ Quit: edwardam: Remote closed the connection
[2009/04/23 01:46:24] @ Quit: cwebber:
[2009/04/23 01:49:24] @ Quit: kolla: Remote closed the connection
[2009/04/23 01:52:02] @ madrescher joined channel #puppet
[2009/04/23 01:55:03] @ cowmix joined channel #puppet
[2009/04/23 01:58:53] @ chip__ joined channel #puppet
[2009/04/23 02:02:53] @ edwardam joined channel #puppet
[2009/04/23 02:03:43] @ pleemans joined channel #puppet
[2009/04/23 02:06:37] @ Quit: edwardam: Client Quit
[2009/04/23 02:12:25] @ kibahop joined channel #puppet
[2009/04/23 02:14:24] @ Quit: atlan_: Read error: 110 (Connection timed out)
[2009/04/23 02:15:50] @ fujin joined channel #puppet
[2009/04/23 02:17:08] @ DavidS joined channel #puppet
[2009/04/23 02:18:08] @ Quit: bolt: "telnet irc.freenode.net 6667"
[2009/04/23 02:21:16] @ Quit: kingitchy: Read error: 110 (Connection timed out)
[2009/04/23 02:21:50] @ bolt joined channel #puppet
[2009/04/23 02:21:52] @ maxagaz joined channel #puppet
[2009/04/23 02:22:36] @ mattock joined channel #puppet
[2009/04/23 02:22:42] @ kolla joined channel #puppet
[2009/04/23 02:25:24] @ Quit: rdaugherty: "Leaving."
[2009/04/23 02:31:59] @ Quit: bgupta: Read error: 60 (Operation timed out)
[2009/04/23 02:35:14] @ Quit: DavidS1: Read error: 110 (Connection timed out)
[2009/04/23 02:37:52] @ bgupta joined channel #puppet
[2009/04/23 02:39:40] @ stijnbe joined channel #puppet
[2009/04/23 02:40:01] @ Quit: bgupta: Client Quit
[2009/04/23 02:44:47] @ Quit: alban2: Read error: 113 (No route to host)
[2009/04/23 02:45:39] @ bgupta joined channel #puppet
[2009/04/23 02:47:02] @ WALoeIII joined channel #puppet
[2009/04/23 02:59:00] <FiXion> jmarki: seen puppetview? it generates graphs :)
[2009/04/23 03:03:15] @ aymerick joined channel #puppet
[2009/04/23 03:04:46] @ cw_ joined channel #puppet
[2009/04/23 03:08:57] @ Quit: cw_: Client Quit
[2009/04/23 03:09:37] @ Quit: fujin:
[2009/04/23 03:12:22] @ fujin joined channel #puppet
[2009/04/23 03:17:51] @ nakano is now known as nakano_
[2009/04/23 03:17:59] @ cw_ joined channel #puppet
[2009/04/23 03:22:27] @ ghenry joined channel #puppet
[2009/04/23 03:23:05] @ johnw joined channel #puppet
[2009/04/23 03:23:17] <FiXion> hi guys.. I need to run Exec[apt-update] before updating a package..
[2009/04/23 03:23:36] <FiXion> I tried require => Exec[apt-update] in the package declaration
[2009/04/23 03:23:46] <FiXion> that didn't work :)
[2009/04/23 03:23:46] <johnw> what's the best way to model a File that depends on a service first running, but which must restart the service if it changes?
[2009/04/23 03:23:59] <FiXion> I use notify
[2009/04/23 03:24:01] <johnw> FiXion: how didn't it work?
[2009/04/23 03:24:09] <FiXion> notify => Service[apache2] f.ex.
[2009/04/23 03:24:12] <johnw> notify would work for me, but I need require too
[2009/04/23 03:24:18] <johnw> it causes a cyclic loop if I use both
[2009/04/23 03:24:29] <FiXion> johnw: what do you want to require ?
[2009/04/23 03:24:35] <johnw> the service
[2009/04/23 03:24:43] <johnw> require => Service[apache2], notify => Service[apache2]
[2009/04/23 03:25:00] <FiXion> shouldn't the require be on the package[apache2]?
[2009/04/23 03:25:02] <johnw> that is, I can't install the file unless the service is running (because when it runs the first time, it configures the directories and such)
[2009/04/23 03:25:02] <FiXion> that's what I do
[2009/04/23 03:25:13] <johnw> no, I can't instlal the File until after the service runs the first time
[2009/04/23 03:25:20] <johnw> but once installed, I need the service to restart on changes to the file
[2009/04/23 03:25:35] @ DerekW joined channel #puppet
[2009/04/23 03:25:36] <johnw> it's a mutual dependency, and I need Service to come first
[2009/04/23 03:25:37] <FiXion> you could do a subscribe to the file perhaps?
[2009/04/23 03:25:40] <FiXion> in the service def.
[2009/04/23 03:25:43] <FiXion> should do the same
[2009/04/23 03:25:44] <johnw> would be the same loop
[2009/04/23 03:25:51] @ Quit: cw_: "Leaving..."
[2009/04/23 03:26:23] <ohadlevy> johnw: I think exec is your friend here
[2009/04/23 03:26:35] <johnw> hmm
[2009/04/23 03:26:36] <johnw> ok
[2009/04/23 03:26:42] <ohadlevy> johnw: sounds like a stupid service due...
[2009/04/23 03:26:54] <ohadlevy> you could also fool puppet a bit
[2009/04/23 03:26:56] <johnw> it's PostgreSQL fyi
[2009/04/23 03:27:03] <johnw> i need to modify pg_hba.conf
[2009/04/23 03:27:05] @ int joined channel #puppet
[2009/04/23 03:27:10] <johnw> but only after it initializes the system
[2009/04/23 03:27:11] <ohadlevy> use a file one time with name and one time with path
[2009/04/23 03:27:34] @ MattyM joined channel #puppet
[2009/04/23 03:28:43] <johnw> hmm that's an idea
[2009/04/23 03:29:00] <johnw> i use the path version to notify the service, and the Exec name version to install the file the first time
[2009/04/23 03:29:23] <ohadlevy> yeah with replace => no
[2009/04/23 03:29:50] <ohadlevy> yeah / or with replace => no
[2009/04/23 03:30:03] <johnw> hmm
[2009/04/23 03:30:40] <johnw> like this? http://gist.github.com/100374
[2009/04/23 03:31:56] @ nakano_ is now known as nakano
[2009/04/23 03:32:17] @ Quit: fujin:
[2009/04/23 03:33:14] <ohadlevy> which one is the first one/
[2009/04/23 03:33:15] <ohadlevy> ?
[2009/04/23 03:33:44] <johnw> what do you mean?
[2009/04/23 03:33:54] <johnw> the first is for installing
[2009/04/23 03:33:56] <johnw> the first time
[2009/04/23 03:33:58] <ohadlevy> try http://gist.github.com/100375
[2009/04/23 03:33:59] <johnw> the second is for observing
[2009/04/23 03:34:08] <ohadlevy> ah
[2009/04/23 03:34:13] <ohadlevy> so it should be the other way around
[2009/04/23 03:36:04] @ Quit: pugnacity: Remote closed the connection
[2009/04/23 03:36:10] <johnw> ah
[2009/04/23 03:36:35] <johnw> gotcha
[2009/04/23 03:36:36] <johnw> trying...
[2009/04/23 03:40:09] @ Quit: Djelibeybi: Read error: 60 (Operation timed out)
[2009/04/23 03:42:36] @ pugnacity joined channel #puppet
[2009/04/23 03:43:35] @ Djelibeybi joined channel #puppet
[2009/04/23 03:45:10] <johnw> ohadlevy: no, that does not work
[2009/04/23 03:45:19] <ohadlevy> why not?
[2009/04/23 03:45:22] <johnw> title and name collide
[2009/04/23 03:45:30] <johnw> they are synonyms here it would seem
[2009/04/23 03:45:39] <ohadlevy> which version of puppet?
[2009/04/23 03:45:42] <johnw> 0.24.8
[2009/04/23 03:46:13] <johnw> this works: http://gist.github.com/100381
[2009/04/23 03:47:54] @ mikepea joined channel #puppet
[2009/04/23 03:51:27] @ Quit: mikepea: Client Quit
[2009/04/23 03:54:56] @ HarryCalahan joined channel #puppet
[2009/04/23 03:56:01] @ Quit: Djelibeybi: "Leaving"
[2009/04/23 03:57:36] <johnw> that appears to have done the trick, thanks!
[2009/04/23 03:57:55] <johnw> i'll reset the VM tomorrow and do a full run from scratch to make sure all the dependencies are in fact ordered correctly
[2009/04/23 03:59:16] <ohadlevy> johnw: thats kinda tricky, and might not work in future releases of puppet..
[2009/04/23 03:59:18] <ohadlevy> but :)
[2009/04/23 03:59:54] @ fujin joined channel #puppet
[2009/04/23 04:04:54] @ Quit: hMz: pratchett.freenode.net irc.freenode.net
[2009/04/23 04:04:54] @ Quit: jbarratt: pratchett.freenode.net irc.freenode.net
[2009/04/23 04:04:54] @ Quit: FUF: pratchett.freenode.net irc.freenode.net
[2009/04/23 04:04:55] @ Quit: Soahc: pratchett.freenode.net irc.freenode.net
[2009/04/23 04:04:55] @ Quit: lutter: pratchett.freenode.net irc.freenode.net
[2009/04/23 04:04:55] @ Quit: Mandus: pratchett.freenode.net irc.freenode.net
[2009/04/23 04:04:56] @ Quit: Jiko: pratchett.freenode.net irc.freenode.net
[2009/04/23 04:05:07] @ Soahc joined channel #puppet
[2009/04/23 04:05:08] @ Jiko joined channel #puppet
[2009/04/23 04:05:08] @ FUF joined channel #puppet
[2009/04/23 04:05:08] @ jbarratt joined channel #puppet
[2009/04/23 04:05:08] @ hMz joined channel #puppet
[2009/04/23 04:05:08] @ Mandus joined channel #puppet
[2009/04/23 04:05:08] @ lutter joined channel #puppet
[2009/04/23 04:06:24] @ tim|mb joined channel #puppet
[2009/04/23 04:07:42] @ Quit: fluxdude: Remote closed the connection
[2009/04/23 04:14:08] * monachus is in limbo.
[2009/04/23 04:16:38] @ verwilst joined channel #puppet
[2009/04/23 04:17:07] @ Quit: johnw:
[2009/04/23 04:23:33] @ glaw joined channel #puppet
[2009/04/23 04:34:43] @ mikepea joined channel #puppet
[2009/04/23 04:42:26] * monachus is in limbo.
[2009/04/23 04:44:37] @ briandquinn joined channel #puppet
[2009/04/23 04:45:00] @ bajan joined channel #puppet
[2009/04/23 04:47:24] @ Quit: ericrw:
[2009/04/23 04:49:03] @ Quit: bolt: Remote closed the connection
[2009/04/23 04:50:32] @ friendly12345 joined channel #puppet
[2009/04/23 04:51:12] @ ericrw joined channel #puppet
[2009/04/23 04:51:51] <HarryCalahan> any hints on how to nicely handle ssh authorized_keys? I would like to define a list of keys and then make sure that exactly those keys are in the authorized_keys file of an account on the puppet-client.
[2009/04/23 04:52:43] <bajan> Fairly sure that's all documented in the wiki as a contributed recipe.
[2009/04/23 04:53:06] <HarryCalahan> bajan: the recipe needs to specify keys that are to be removed (ensure absent)
[2009/04/23 04:53:23] @ Quit: briandquinn:
[2009/04/23 04:55:05] * bajan brute forces it - server has a .ssh/authorized_keys that gets pushed to the client node.
[2009/04/23 04:55:56] <HarryCalahan> yeah but i have different keysets for different hosts and wanted to avoid having an authorized_keys file for every set
[2009/04/23 04:57:05] @ briandquinn joined channel #puppet
[2009/04/23 04:59:41] @ puppet joined channel #puppet
[2009/04/23 05:02:22] @ Quit: voixd: Read error: 110 (Connection timed out)
[2009/04/23 05:05:23] @ Quit: mconigliaro: Read error: 104 (Connection reset by peer)
[2009/04/23 05:08:01] @ bolt joined channel #puppet
[2009/04/23 05:12:05] @ Quit: madrescher: Read error: 110 (Connection timed out)
[2009/04/23 05:49:47] @ Quit: puppet: "http://www.mibbit.com ajax IRC Client"
[2009/04/23 05:59:49] @ kibahop left channel #puppet ()
[2009/04/23 06:00:25] @ kibahop joined channel #puppet
[2009/04/23 06:01:23] @ alban2 joined channel #puppet
[2009/04/23 06:05:07] * bartc doesn't like dependency cycles
[2009/04/23 06:05:12] <bartc> http://pastebin.com/m617be9b7
[2009/04/23 06:05:14] <bartc> :-(
[2009/04/23 06:08:53] @ Quit: ohadlevy: Remote closed the connection
[2009/04/23 06:24:48] <StyleWarz> hm, immerda isn't on irc, is he?
[2009/04/23 06:25:39] @ keithlard joined channel #puppet
[2009/04/23 06:30:38] @ Djelibeybi joined channel #puppet
[2009/04/23 06:31:01] @ andrewcshafer_ joined channel #puppet
[2009/04/23 06:37:25] @ d3vilb0x joined channel #puppet
[2009/04/23 06:37:38] @ Quit: keithlard:
[2009/04/23 06:39:10] <gebi> HarryCalahan: maybe consider kerberos, i switched a few months ago and never regret it
[2009/04/23 06:39:43] <gebi> there is only a single ssh key on each machine and thats for root (option: without-password)
[2009/04/23 06:40:16] <gebi> but depends on your infrastructure how much work it is (synchonized time + fqdn for each machine)
[2009/04/23 06:40:18] <HarryCalahan> gebi: i have two use cases: root logins (more then one admin) and allow users to execute stuff by adding command only ssh keys
[2009/04/23 06:40:43] <HarryCalahan> gebi: normal user accounts can copy their key to their account themself ;)
[2009/04/23 06:41:11] <gebi> ah, for more admis i usually just use sudo rights for this user
[2009/04/23 06:41:30] <gebi> nice because of extended logging through sudo
[2009/04/23 06:45:54] @ Quit: andrewcshafer: Read error: 110 (Connection timed out)
[2009/04/23 06:46:14] @ MarlondB joined channel #puppet
[2009/04/23 06:48:54] @ keithlard joined channel #puppet
[2009/04/23 06:49:32] @ Bombadil joined channel #puppet
[2009/04/23 06:53:21] <Bombadil> Hi
[2009/04/23 06:53:53] <Bombadil> I would like to create symlinks whose name and content depends on the value of an array variable with puppet
[2009/04/23 06:54:07] <Bombadil> I tried this: http://pastebin.ch/1212 but it doesn't work
[2009/04/23 06:54:16] <Bombadil> any ideas how to achieve this?
[2009/04/23 06:54:50] <Volcane> puppet's language is not ruby
[2009/04/23 06:55:06] <Volcane> so you need to make define to create the symlinks
[2009/04/23 06:55:27] <Bombadil> "make define"? What do you mean?
[2009/04/23 06:55:37] <Volcane> look in the language tutorial for 'Definitions'
[2009/04/23 06:56:18] <tim|mb> bah, I hate it when I have a nice template for an app and the customer wants to see more and more variables customized... the define gets longer and longer :(
[2009/04/23 06:56:38] <tim|mb> apps should be limited to no more than 10 settings
[2009/04/23 06:56:42] <Bombadil> Volcane: I can create single symlinks with file(symlinkname: ensure => target) -- so Definitions are needed for the array evaluation stuff?
[2009/04/23 06:56:44] <tim|mb> and that goes double for all things java
[2009/04/23 06:57:03] <Volcane> yes, puppets way to loop arrays are defines
[2009/04/23 06:57:06] @ ssm joined channel #puppet
[2009/04/23 06:57:15] <Volcane> define makelinks(.....) { }
[2009/04/23 06:57:18] <Volcane> and then
[2009/04/23 06:57:39] <Volcane> makelinke{$ar: .... }
[2009/04/23 06:57:42] <Volcane> is the same as
[2009/04/23 06:57:55] <Volcane> for i in $arry; do makelinks{$i: ... }
[2009/04/23 07:04:08] <Bombadil> Volcane: how do I reference the define in my class? Puppet pesters me with an unknown function error...
[2009/04/23 07:04:32] <Bombadil> or where do I put the define in?
[2009/04/23 07:04:39] <Volcane> i told you exactly where to find the documentation for this, and even what to search for in the doc.
[2009/04/23 07:09:31] <HarryCalahan> will puppet do path expansion on File resources? file{ "foos home dir": path => "~foo/" }
[2009/04/23 07:09:34] <HarryCalahan> guess not.
[2009/04/23 07:10:12] * SyTonnerre does that via an intelligence patch to pam_mkhomedir
[2009/04/23 07:11:44] @ Quit: goa6id: Read error: 60 (Operation timed out)
[2009/04/23 07:14:37] <jenza> hehe it's always amusing reading random pastes on pastie
[2009/04/23 07:14:42] <jenza> people leaving passwords in, etc
[2009/04/23 07:15:12] <jenza> $config['MasterServer']['username'] = 'unitedha';
[2009/04/23 07:15:12] <jenza> $config['MasterServer']['password'] = 'sup123';
[2009/04/23 07:15:15] @ jmeeuwen_ joined channel #puppet
[2009/04/23 07:15:16] <jenza> whoops :P
[2009/04/23 07:16:31] <SyTonnerre> jenza, google for 'BEGIN RSA PRIVATE KEY'
[2009/04/23 07:18:16] <Bombadil> Volcane: The array stuff doesn't work. If I use makelinks{$ar: ... } then it concatenates all strings in $ar and uses this.
[2009/04/23 07:18:16] <jenza> nah
[2009/04/23 07:18:19] <jenza> ssh-rsa works fine
[2009/04/23 07:18:20] <jenza> http://pastie.org/pastes/447646
[2009/04/23 07:18:33] <jenza> Way ahead of you :)
[2009/04/23 07:19:16] <Bombadil> any other idea?
[2009/04/23 07:19:32] <SyTonnerre> jenza, that's the public key
[2009/04/23 07:19:40] <SyTonnerre> jenza, there's no reason not to publish that
[2009/04/23 07:19:55] <tim|mb> Bombadil: then you're not using $ar as the name of the resource, I think...
[2009/04/23 07:20:46] <jenza> http://pastie.org/pastes/401398
[2009/04/23 07:21:02] <jenza> yeah true
[2009/04/23 07:21:27] <SyTonnerre> jenza, the worst someone could do with that is put it in his ~/.ssh/authorized_keys, granting you access to his system :P
[2009/04/23 07:22:54] <jenza> assuming you had the private key
[2009/04/23 07:23:17] * HarryCalahan is still waiting that the university removes all of the ssh keys he left in the root accounts 12 years ago
[2009/04/23 07:23:20] <SyTonnerre> jenza, no
[2009/04/23 07:23:30] <SyTonnerre> jenza, the one who nopasted the stuff had the private key
[2009/04/23 07:23:55] <SyTonnerre> jenza, if you put the nopasted key into your ~/.ssh/authorized_key, he can log into your account
[2009/04/23 07:23:59] @ Quit: niczar1: Remote closed the connection
[2009/04/23 07:24:04] <SyTonnerre> jenza, and that's all you can do with it
[2009/04/23 07:24:57] <jenza> Yeah I know
[2009/04/23 07:25:04] <jenza> Wonder what else you can find on there
[2009/04/23 07:25:16] @ Quit: jmeeuwen: Read error: 104 (Connection reset by peer)
[2009/04/23 07:25:43] <SyTonnerre> jenza, http://pastie.org/pastes/433884
[2009/04/23 07:25:43] @ jmeeuwen_ is now known as jmeeuwen
[2009/04/23 07:25:47] @ masterzen joined channel #puppet
[2009/04/23 07:26:02] <jenza> hehe
[2009/04/23 07:26:44] @ goacid joined channel #puppet
[2009/04/23 07:27:24] <Bombadil> tim|mb: am I bound to use exactly $ar as the name of the resource?
[2009/04/23 07:27:34] @ niczar1 joined channel #puppet
[2009/04/23 07:27:39] <Bombadil> I have now http://pastebin.ch/1214, but puppet complains about a duplicate definition
[2009/04/23 07:30:09] <tim|mb> Bombadil: that should work, how is $mxinterface defined?
[2009/04/23 07:31:25] <Bombadil> within a node definition: $mxinterface = [ '1.2.3.4', '5.6.7.8' ]
[2009/04/23 07:32:16] <Volcane> no, what you want is
[2009/04/23 07:32:24] <Volcane> define sslcert() {
[2009/04/23 07:32:35] <Volcane> file {"/etc/ssl/private/${name}.pem......................
[2009/04/23 07:32:41] <Volcane> and then dont pass the array into it
[2009/04/23 07:32:50] <tim|mb> ah yeah, indeed
[2009/04/23 07:32:51] <Volcane> $name gets set by the define as the current one its working on
[2009/04/23 07:33:13] <Volcane> but thats a different problem than the duplicate definition error
[2009/04/23 07:33:19] <Volcane> show the entire actual error please
[2009/04/23 07:33:28] <Volcane> and where you set the variables
[2009/04/23 07:35:19] <Bombadil> Volcane: Thank's a lot. Apparently it works now with define sslcert() { and without passing the array into it... brb
[2009/04/23 07:37:11] <mrrx> is there "hash"-like support? name => value type
[2009/04/23 07:37:19] <Volcane> no
[2009/04/23 07:37:22] <mrrx> =[
[2009/04/23 07:38:56] @ kambiz is now known as kambiz_away
[2009/04/23 07:38:57] <HarryCalahan> can i read the content of a file into a variable?
[2009/04/23 07:39:04] <Volcane> file()
[2009/04/23 07:39:17] <Volcane> if the files on teh master
[2009/04/23 07:39:18] <HarryCalahan> FunctionReference... stupid me.
[2009/04/23 07:40:55] <HarryCalahan> the file is on the master inside the modules/foo/files folder. how would i specify this path?
[2009/04/23 07:41:00] <HarryCalahan> on the master.
[2009/04/23 07:41:15] <Volcane> not easily :(
[2009/04/23 07:41:26] <Volcane> i wish you could though cos it would help a lot, but alas, u need full paths
[2009/04/23 07:41:37] <Djelibeybi> HarryCalahan: yes, you can
[2009/04/23 07:41:44] <mrrx> isn't it puppet://master/foo/file_here.blaat?
[2009/04/23 07:42:03] <mrrx> or this only works as "source"?
[2009/04/23 07:42:04] <Volcane> mrrx: file() != file type, file() is a function that reads a file and return its contents
[2009/04/23 07:42:04] <Djelibeybi> HarryCalahan: $variable => source("puppet:///module/filename"),
[2009/04/23 07:42:07] <HarryCalahan> mrrx: that is for transfers inside a File resource.
[2009/04/23 07:42:13] <mrrx> oh
[2009/04/23 07:42:15] <mrrx> right
[2009/04/23 07:42:23] <Djelibeybi> Wait
[2009/04/23 07:42:29] <Djelibeybi> Why not use a template without any template bits?
[2009/04/23 07:42:45] <Djelibeybi> So, $variable => template("template.erb"),
[2009/04/23 07:43:09] <HarryCalahan> Djelibeybi: thats good.
[2009/04/23 07:45:58] <Volcane> file() has the advantge to that in that it can do something like source => in a file type with an array of sources, first one it finds it will use
[2009/04/23 07:46:02] <Volcane> template cant :(
[2009/04/23 07:46:46] <HarryCalahan> i wont need this.
[2009/04/23 07:46:49] <Djelibeybi> Volcane: true, but template has internal processing, so you can do if/then/else statements instead of relying on an array of sources
[2009/04/23 07:47:17] <Volcane> yeah but thats just horrible for anything past trivial things
[2009/04/23 07:47:54] <Volcane> file() + inline_template() can do the same with templates, but if only file wasnt lame about finding files in module paths etc it would be awesome
[2009/04/23 07:48:17] <Volcane> masterzen: are you around?
[2009/04/23 07:48:28] <masterzen> yep
[2009/04/23 07:49:46] <Volcane> masterzen: I've been trying to unravel the mysteries involved in puppetdoc finding a list of all known classes, but its a bit of a challenge really. I want to just get a list of all classes puppetmaster knows about to feed a classifier, do you have a easy method for this, maybe with reusing some of the stuff you did in the rdoc work?
[2009/04/23 07:49:54] @ madrescher joined channel #puppet
[2009/04/23 07:50:29] <Volcane> i literally just want an array of ["apache", "apache::config", "apache::service", ....]
[2009/04/23 07:50:59] <masterzen> is it for a given host, or in all your manifests.
[2009/04/23 07:51:03] <masterzen> s/./?/
[2009/04/23 07:51:04] <Volcane> all
[2009/04/23 07:51:55] <masterzen> puppetdoc generates a documentation file for each found class, so if you check the various directories after generating the html, I'm sure you can find what you want.
[2009/04/23 07:52:04] <Volcane> currently i grep/awk/etc which is messy, your method seems far superior, but then looking at how you parse the util/rdoc/parser.rb file its pretty scary :)
[2009/04/23 07:52:33] <masterzen> yeah, I know. That's because of RDoc.
[2009/04/23 07:53:09] <masterzen> What you can do, is shunt the RDoc stuff in util/rdoc/parser.rb and just produce an output for each classes parsed.
[2009/04/23 07:53:39] <Volcane> k, will poke about
[2009/04/23 07:53:42] <HarryCalahan> how can i include the content of another file inside of an erb template
[2009/04/23 07:53:45] <masterzen> sorry in utild/rdoc/rdoc.rb
[2009/04/23 07:53:59] <Volcane> was hoping i could load up the puppet parser somehow and ask it for an array of known things :(
[2009/04/23 07:54:27] <masterzen> sorry again, that was in util/rdoc/parser.rb, you where right
[2009/04/23 07:55:16] <Volcane> yeah, thats basically what i was heading toward :(
[2009/04/23 07:55:20] <Volcane> ok, lunch calls, thanks!
[2009/04/23 07:55:27] <masterzen> Volcane: see you
[2009/04/23 07:57:59] <phantez> hello, is that normal that puppetdoc --outputdir /tmp --mode rdoc /etc/puppet/manifests/site.pp doesn't do anything ? and no error message ?
[2009/04/23 07:59:53] <phantez> I'm using puppet 0.24.8 =)
[2009/04/23 08:04:35] @ Quit: Djelibeybi: "Leaving"
[2009/04/23 08:05:53] @ kibaho1 joined channel #puppet
[2009/04/23 08:09:53] @ Quit: benkei_gone: "Coyote finally caught me"
[2009/04/23 08:16:41] @ Quit: glaw:
[2009/04/23 08:18:23] * FiXion does not use puppetdoc..
[2009/04/23 08:20:31] <phantez> masterzen: =)
[2009/04/23 08:21:00] <masterzen> try debug mode: puppetdoc --debug ...
[2009/04/23 08:21:13] <phantez> j'ai que une ligne qui dit qu il lit le fichier
[2009/04/23 08:21:56] <phantez> puppetdoc /etc/puppet/manifests/site.pp --debug
[2009/04/23 08:21:56] <phantez> info: scanning: ["/etc/puppet/manifests/site.pp"]
[2009/04/23 08:22:32] <masterzen> oh and in rdoc mode you don't have to give a manifest. It uses by default your manifest path and modulepath, so all your manifests, as long as you have a puppet.conf
[2009/04/23 08:22:53] <FiXion> any one know why this doesn't make puppet run apt-get update before trying to update the package ?
[2009/04/23 08:22:57] <FiXion> http://pastebin.com/m5ebf6f4d
[2009/04/23 08:23:25] <masterzen> phantez: sorry, I prefer to keep it in English here :-)
[2009/04/23 08:23:57] <phantez> oups sorry, just forgot =)
[2009/04/23 08:23:59] <masterzen> phantez: you must have some comments _attached_ to your classes in your site.pp. ie there shouldn't be any blank lines between the comment and the code.
[2009/04/23 08:24:04] <phantez> I past you my output
[2009/04/23 08:24:33] <phantez> http://pastie.org/455722
[2009/04/23 08:24:43] <phantez> okay so if there is no comment there is nothing generated ?
[2009/04/23 08:24:55] <phantez> so this is normal ?
[2009/04/23 08:25:01] <masterzen> no
[2009/04/23 08:25:11] <masterzen> I mean your error is not normal.
[2009/04/23 08:25:21] <masterzen> basically puppetdoc has 2 modes.
[2009/04/23 08:25:36] <masterzen> The first one is to generate an html doc (ie --mode rdoc).
[2009/04/23 08:26:06] <masterzen> the second is when you give it a path to a manifest, it then extracts all the comments attached to nodes and classes and prints them on the console for an easy reference ala perldoc.
[2009/04/23 08:26:21] <masterzen> can you --trace?
[2009/04/23 08:27:01] <phantez> http://pastie.org/455723
[2009/04/23 08:27:17] @ kambiz_away is now known as kambiz
[2009/04/23 08:27:32] @ jmeeuwen_ joined channel #puppet
[2009/04/23 08:28:25] <phantez> the following cmd : puppetdoc /etc/puppet/manifests/site.pp --trace doesn't return anything, but I don't have any comment in my manifest is it linked ?
[2009/04/23 08:30:18] <masterzen> there is an error in rdoc. Your rdoc line numbers don't match mine. Can you check which rdoc version you have? which version of ruby it is?
[2009/04/23 08:30:22] @ Quit: Bombadil: "leaving"
[2009/04/23 08:30:49] <phantez> ruby 1.8.5 (2006-08-25) [i386-linux]
[2009/04/23 08:31:18] <SyTonnerre> phantez, modern crap :P
[2009/04/23 08:31:28] @ kibaho1 left channel #puppet ()
[2009/04/23 08:31:29] <masterzen> ok, maybe it doesn't work with this version... I only tested 1.8.6 and 1.8.7
[2009/04/23 08:31:55] <masterzen> try: puppetdoc --mode rdoc --outputdir /tmp/doc --debug --trace
[2009/04/23 08:31:59] <masterzen> just to see.
[2009/04/23 08:32:42] <masterzen> phantez: about puppetdoc /etc/puppet/manifests/site.pp not returning anything, if you don't have comments then it's normal :-)
[2009/04/23 08:32:50] <phantez> ok
[2009/04/23 08:33:16] <masterzen> puppetdoc is a system like phpdoc, javadoc or RDoc. It only acts on comments.
[2009/04/23 08:33:35] <phantez> okay I see ;)
[2009/04/23 08:33:37] <masterzen> actually, it uses the puppet parser, so it understands the structures of your manifests
[2009/04/23 08:33:45] @ glaw joined channel #puppet
[2009/04/23 08:33:53] <masterzen> but the documentation has to be wrriten in the comments for it to display it.
[2009/04/23 08:33:56] @ Quit: fujin:
[2009/04/23 08:34:02] <phantez> http://pastie.org/455731
[2009/04/23 08:34:17] <flashn> anyone know anything about the puppet recruiter?
[2009/04/23 08:34:23] <flashn> cant find any files in the project
[2009/04/23 08:34:26] <flashn> sounds interesting
[2009/04/23 08:34:41] @ rlpowell_ joined channel #puppet
[2009/04/23 08:35:10] @ jmeeuwen__ joined channel #puppet
[2009/04/23 08:35:24] <masterzen> phantez: point your browser to /tmp/doc/index.html
[2009/04/23 08:35:45] @ Quit: jmeeuwen_: Connection reset by peer
[2009/04/23 08:35:50] @ Quit: rlpowell: Connection reset by peer
[2009/04/23 08:36:45] <HarryCalahan> sorry to ask again, but is there a way for a template to include other files?
[2009/04/23 08:37:05] <masterzen> flashn: I think the one of the guys working on this project is there from time to time, but I can't remember his nickname...
[2009/04/23 08:37:29] <masterzen> HarryCalahan: templates are erb files, so if erb knows to include, then the answer is yes.
[2009/04/23 08:37:51] <masterzen> HarryCalahan: but it won't search your module path and such niceties
[2009/04/23 08:37:54] <phantez> masterzen: it works ;)
[2009/04/23 08:37:55] <HarryCalahan> masterzen: the question is can erb do this (i have no clue on ruby and erb)
[2009/04/23 08:37:57] @ melopt joined channel #puppet
[2009/04/23 08:38:02] <flashn> only an empty README has been commited >:P
[2009/04/23 08:38:23] <masterzen> flashn: maybe they don't have commit power :-)
[2009/04/23 08:38:34] <flashn> >:)
[2009/04/23 08:38:48] * melopt bows
[2009/04/23 08:38:53] <melopt> I'm getting this: warning: /Settings[/etc/puppet/puppet.conf]/Settings[reporting]/File[/var/puppet/reports]/owner: Cannot manage ownership unless running as root
[2009/04/23 08:39:09] <melopt> I don't understand why puppermasted is tryng to manage that directory
[2009/04/23 08:39:54] <masterzen> I suppose it's where your master will store its reports?
[2009/04/23 08:40:39] <melopt> yes, I just pasted one line.... http://pastie.textmate.org/private/ef3lksupuv1odlunerofrg
[2009/04/23 08:40:54] <melopt> it complains about all the path's in the puppet.conf
[2009/04/23 08:43:09] <HarryCalahan> i'll try different. i have an array with filenames and want to concat those files and place them on a puppet-client. i tried to use a template but can't figure out how to include other files from inside the template. is there a nice way to do this in puppet?
[2009/04/23 08:43:28] <masterzen> melopt: your var/puppet directory doesn't belong to the user the master is running
[2009/04/23 08:43:35] @ Quit: friendly12345: "Leaving."
[2009/04/23 08:44:06] <masterzen> HarryCalahan: you can template(file1,file2,file3) and it will concatenate them.
[2009/04/23 08:44:27] <melopt> masterzen, no, belongs to root, but the directories inside it belong to puppet user
[2009/04/23 08:45:00] <masterzen> and are you sure your master runs as puppet?
[2009/04/23 08:45:03] <melopt> Yes
[2009/04/23 08:45:29] <masterzen> and is it a new symptom?
[2009/04/23 08:45:43] @ Quit: maxagaz: Remote closed the connection
[2009/04/23 08:46:43] <melopt> yes, and I checked the git changelog for config changes and the only added report = true to [puppetd] and reports = store to [puppetmasterd]
[2009/04/23 08:47:00] <melopt> I'll revert my changes until I can make it go away :)
[2009/04/23 08:48:08] @ kibahop left channel #puppet ()
[2009/04/23 08:50:41] @ Quit: jmeeuwen: Success
[2009/04/23 08:50:44] @ jmeeuwen__ is now known as jmeeuwen
[2009/04/23 08:51:32] <melopt> What I didn't understand is why is the puppetmasterd trying to change the permissions itself. Isn't the puppetd the process that changes things?
[2009/04/23 08:53:33] <masterzen> those dirs are critical for the master, if they don't exists, then it can not work.
[2009/04/23 08:54:05] @ joe-mac joined channel #puppet
[2009/04/23 08:54:21] <melopt> I think I understand the problem now, but I don't know puppet internals
[2009/04/23 08:54:35] <melopt> this happens when the server notices a new puppet.conf and reloads it
[2009/04/23 08:54:40] <masterzen> yes
[2009/04/23 08:55:30] <melopt> when puppetmasterd starts, he is running as root so he can make sure all directories are correct and chown them to puppet, but when he re-reads the file he is already running as puppet so this checks fail because /var/puppet is owned by root
[2009/04/23 08:55:45] <melopt> thats why I'm getting the error message I think.
[2009/04/23 08:55:52] <melopt> s/error/warning/
[2009/04/23 08:56:22] <masterzen> yes, I think you are right.
[2009/04/23 08:57:17] <melopt> I found it odd because I never created the /var/puppet directory, it was puppetmasterd first run that did that, and he sticked root:root in /var/puppet.
[2009/04/23 09:00:40] @ kambiz is now known as kambiz_away
[2009/04/23 09:03:26] @ zobbo joined channel #puppet
[2009/04/23 09:04:56] <melopt> yep, all is fine now ... Cool
[2009/04/23 09:04:58] <melopt> masterzen, thanks
[2009/04/23 09:05:10] @ Quit: Demosthenes: Read error: 113 (No route to host)
[2009/04/23 09:05:34] <masterzen> np, didn't do anything useful for you :-)
[2009/04/23 09:05:36] <zobbo> Anybody got any ideas on how to get puppet to collect the ip addresses for all my nodes? Is it possible? I can see ipaddress_eth0 on the node facter output but no idea if I can pull it to the central puppet server somehow.
[2009/04/23 09:05:58] <Volcane> what do you want to achieve?
[2009/04/23 09:06:17] <melopt> masterzen, you listened, helped me figure it out :)
[2009/04/23 09:06:47] <zobbo> Volcane: I want to have a central list of node names and ip addresses updated automatically. Eventually to do magic with capistrano.
[2009/04/23 09:07:23] <Volcane> zobbo: check out /var/lib/puppet/yaml on your master
[2009/04/23 09:08:23] <zobbo> Volcane: that is *awesome* ! Thanks.
[2009/04/23 09:11:01] <Volcane> careful though, if you delete a machine and it never speaks to the master again the master wont delete its files there
[2009/04/23 09:12:41] <zobbo> understood
[2009/04/23 09:13:02] <zobbo> if a machine exists it should always be on puppet for our setup
[2009/04/23 09:14:47] @ lak joined channel #puppet
[2009/04/23 09:18:32] @ nasrat joined channel #puppet
[2009/04/23 09:24:12] @ Quit: mattock: "Leaving."
[2009/04/23 09:24:37] @ rsquared joined channel #puppet
[2009/04/23 09:27:24] @ nakano is now known as nakano_
[2009/04/23 09:33:34] @ rgsteele||work joined channel #puppet
[2009/04/23 09:34:05] @ Bass10 joined channel #puppet
[2009/04/23 09:42:04] @ ckm joined channel #puppet
[2009/04/23 09:43:24] @ erm_ joined channel #puppet
[2009/04/23 09:47:19] @ Quit: briandquinn:
[2009/04/23 09:51:10] @ martha1 joined channel #puppet
[2009/04/23 09:51:24] @ martha1 left channel #puppet ()
[2009/04/23 09:51:50] @ cwebber joined channel #puppet
[2009/04/23 09:56:53] <mikepea> Volcane: what are the differences between the (use of) the yaml/facts and yaml/node directories? The per-node yaml files in there seem pretty similar.
[2009/04/23 09:58:17] <Volcane> not sure what the diff is
[2009/04/23 09:59:46] <goacid> hi there
[2009/04/23 10:00:34] <goacid> does anyone have a solution, if the puppetmasterd failed, could you configure the puppetd to automaticly point to another puppetmaster ?
[2009/04/23 10:00:49] <lak> mikepea: the two files are often similar, but they're quite different if you use an external node tool
[2009/04/23 10:01:01] <lak> goacid: not at this point
[2009/04/23 10:01:10] <lak> although you should be able to in 0.26
[2009/04/23 10:01:33] <Volcane> grrr.
[2009/04/23 10:01:37] <Volcane> oops, wrong #
[2009/04/23 10:02:01] <goacid> Iak : ok
[2009/04/23 10:04:08] @ kambiz_away is now known as kambiz
[2009/04/23 10:10:43] <HarryCalahan> *wohoo* using puppet 0.24.8 the colored output is readable on a dark terminal.
[2009/04/23 10:14:03] @ mfoster joined channel #puppet
[2009/04/23 10:16:53] @ Quit: nmalik: Read error: 110 (Connection timed out)
[2009/04/23 10:18:36] @ flakrat joined channel #puppet
[2009/04/23 10:18:47] @ jmarki joined channel #puppet
[2009/04/23 10:25:13] <Volcane> yeah its much more tollerable for sure
[2009/04/23 10:27:54] * monachus is in limbo.
[2009/04/23 10:30:47] <masterzen> which raises a question: how many of you are using a black/dark terminal background?
[2009/04/23 10:30:56] <HarryCalahan> *raise*
[2009/04/23 10:31:12] * Volcane does
[2009/04/23 10:31:33] * masterzen does, addicted to amber screens in his childhood :-)
[2009/04/23 10:31:57] * HarryCalahan just wrote the vimrc that gets distributed by puppet to set background=dark
[2009/04/23 10:31:59] <ashp> ... who on earth would use anything other than black for a terminal background?
[2009/04/23 10:32:11] <tim|mb> ashp: me
[2009/04/23 10:32:17] <masterzen> ashp: my co-workers :-(
[2009/04/23 10:32:19] <ashp> you monster :(
[2009/04/23 10:32:26] <tim|mb> mac's terminal defaults to black-on-white
[2009/04/23 10:32:31] @ Quit: kolla: Remote closed the connection
[2009/04/23 10:32:34] <HarryCalahan> ashp: mac users
[2009/04/23 10:32:45] <ashp> yeah but... you change that within seconds of installation, surely
[2009/04/23 10:32:49] <ashp> like any sane and normal person :(
[2009/04/23 10:32:49] * tim|mb is too lazy to change it
[2009/04/23 10:33:07] <masterzen> I own a mac since a looong time, I don't think it kept white for more than a few seconds...
[2009/04/23 10:33:16] <tim|mb> *sigh*
[2009/04/23 10:33:17] <tim|mb> ok ok
[2009/04/23 10:33:21] * tim|mb searches settings
[2009/04/23 10:33:24] <masterzen> :-)
[2009/04/23 10:33:59] <tim|mb> done.
[2009/04/23 10:34:02] <tim|mb> happy now? :P
[2009/04/23 10:34:06] <ashp> yes :D
[2009/04/23 10:34:11] <tim|mb> ooo... mac does transparant terminals... :D
[2009/04/23 10:34:13] <masterzen> yes lol
[2009/04/23 10:34:17] * HarryCalahan hands over a bonus-mark to tim|mb
[2009/04/23 10:34:28] * tim|mb feels appreciated now
[2009/04/23 10:34:33] <HarryCalahan> more karma
[2009/04/23 10:34:45] * masterzen welcomes tim in our dark world :-)
[2009/04/23 10:35:44] <tim|mb> LOL
[2009/04/23 10:35:53] <tim|mb> my vim goes black on white again...
[2009/04/23 10:35:54] <tim|mb> that's silly
[2009/04/23 10:36:16] @ omry_|work joined channel #puppet
[2009/04/23 10:36:22] <tim|mb> how the heck do i change that...
[2009/04/23 10:37:46] <masterzen> sorry I'm not a vi user. but HarryCalahan mentioned background=dark earlier
[2009/04/23 10:39:06] <bajan> vi ~/.vimrc
[2009/04/23 10:39:10] <bajan> i
[2009/04/23 10:39:25] <bajan> set background=dark
[2009/04/23 10:39:30] <bajan> esc, ZZ :)
[2009/04/23 10:39:43] <bajan> and probably set theme too if it's doing black on white
[2009/04/23 10:40:17] <Baum> where can i find more information about "Added LDAP providers for users and groups." in 0.24.5 which is stated http://reductivelabs.com/trac/puppet/wiki/UPGRADE
[2009/04/23 10:40:33] <rgsteele||work> Hm. Can you use +> with the 'content' attribute of the file resource type?
[2009/04/23 10:41:23] <masterzen> rgsteele||work: I don't think so. I don't think content supports arrays.
[2009/04/23 10:41:23] <rgsteele||work> E.g.: file { "foo": content +> file("/path/to/partial_file_content") }
[2009/04/23 10:41:54] <rgsteele||work> Hrm, bummer. Okay, thanks masterzen
[2009/04/23 10:42:29] <masterzen> Baum: maybe wiki:TypeReference
[2009/04/23 10:42:45] <gepetto> masterzen: Baum: wiki:TypeReference is http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2009/04/23 10:43:32] <HarryCalahan> tim|mb: echo "colors default">>~/.vimrc
[2009/04/23 10:43:51] @ Quit: omry|work: Read error: 110 (Connection timed out)
[2009/04/23 10:45:32] <Baum> masterzen thx but its only managing passwords. i want to build a group file from ldap dynamically.. but i have no idea yet how to write that in puppet
[2009/04/23 10:46:12] <masterzen> Baum: that's a different story, than managing users/groups in a ldap.
[2009/04/23 10:46:24] <HarryCalahan> Baum: attach your accounts directly to ldap
[2009/04/23 10:49:14] @ Quit: jmarki: "Leaving"
[2009/04/23 10:52:07] @ rdaugherty joined channel #puppet
[2009/04/23 10:57:47] <Baum> harrycalahan well maybe im gonna do that and manage the default system groups directly from there.
[2009/04/23 10:57:50] <Baum> thx
[2009/04/23 11:00:56] @ Quit: tim|mb:
[2009/04/23 11:02:24] @ Telmo joined channel #puppet
[2009/04/23 11:10:01] <joe-mac> anybody here skilled in the black arts of lotus notes?
[2009/04/23 11:10:05] <joe-mac> sorry for OT
[2009/04/23 11:10:10] <joe-mac> if you are, please PM me
[2009/04/23 11:14:35] @ Quit: masterzen: "Leaving"
[2009/04/23 11:17:58] @ yure joined channel #puppet
[2009/04/23 11:18:51] @ bobbyz joined channel #puppet
[2009/04/23 11:19:52] <Baum> well that doesnt work since the system groups dont have the same gid on all systems. i wanted to write a script that makes all that but usermod cant add the groups cause the user is in ldap .. and not in passwd file
[2009/04/23 11:20:15] <HarryCalahan> add users to ldap too
[2009/04/23 11:20:38] <Baum> the users are in ldap. thats the problem usermod doesnt read the "getent passwd"
[2009/04/23 11:20:49] <Baum> it just looks up the user in /etc/passwd
[2009/04/23 11:21:33] @ nmalik joined channel #puppet
[2009/04/23 11:21:35] <HarryCalahan> i manage my ldap directory by ldapmod.
[2009/04/23 11:22:14] @ Quit: madrescher: Read error: 104 (Connection reset by peer)
[2009/04/23 11:25:02] @ omry_|work is now known as omry|work
[2009/04/23 11:25:52] @ madrescher joined channel #puppet
[2009/04/23 11:28:01] @ alfism joined channel #puppet
[2009/04/23 11:34:11] @ Quit: nmalik: "leaving"
[2009/04/23 11:35:34] <rgsteele||work> Hm, can you test Puppet functions within IRB? Having some probs using this approach: http://pastie.org/455884
[2009/04/23 11:36:36] @ Quit: stijnbe: Client Quit
[2009/04/23 11:37:40] @ cw_ joined channel #puppet
[2009/04/23 11:38:43] <lak> rgsteele||work: call function_<function_name>
[2009/04/23 11:41:09] <rgsteele||work> lak: Literally, from the irb shell?
[2009/04/23 11:41:16] @ Quit: cw_: Client Quit
[2009/04/23 11:41:21] <rgsteele||work> That doesn't seem to work, but I'm sure I'm just misunderstanding you.
[2009/04/23 11:42:31] @ nmalik joined channel #puppet
[2009/04/23 11:42:56] <lak> sorry, i thought you meant irb
[2009/04/23 11:43:16] <Volcane> you mean erb?
[2009/04/23 11:43:23] <rgsteele||work> No, I mean irb
[2009/04/23 11:43:31] <rgsteele||work> As in, the interactive ruby shell
[2009/04/23 11:44:12] <lak> gad
[2009/04/23 11:44:14] <rgsteele||work> I've tried calling it this way as well, to no avail: Puppet::Parser::Functions.funtion_add_to_authkeys("#{keystring}",'/home/foo/.ssh/authorized_keys')
[2009/04/23 11:44:15] @ Quit: verwilst: "Ex-Chat"
[2009/04/23 11:44:17] <lak> *i* meant erb
[2009/04/23 11:44:21] <rgsteele||work> Oh, I see.
[2009/04/23 11:44:22] <lak> rgsteele||work meant irb
[2009/04/23 11:44:23] <lak> i was confused
[2009/04/23 11:44:26] <lak> and also can't type
[2009/04/23 11:44:26] <Volcane> nods :)
[2009/04/23 11:44:38] <rgsteele||work> lak: Well, is it possible to do what I'm attempting?
[2009/04/23 11:44:40] <lak> rgsteele||work: the functions get added to the Scope class
[2009/04/23 11:44:52] <lak> so the only way to do that is to make a scope instance and call the function from it
[2009/04/23 11:44:59] <lak> as function_<foo>
[2009/04/23 11:45:39] <rgsteele||work> Maybe it's just easier to run the manifest and add some puts statements in the function, and check the logs.
[2009/04/23 11:46:01] <rgsteele||work> I dunno what's involved in instantiating a Scope object
[2009/04/23 11:46:07] <lak> too much :/
[2009/04/23 11:46:09] @ Quit: madrescher: Read error: 110 (Connection timed out)
[2009/04/23 11:46:11] @ tim|mb joined channel #puppet
[2009/04/23 11:46:26] <rgsteele||work> Heh. puts will go to STDOUT, which Puppet should log, correct?
[2009/04/23 11:46:50] <lak> no
[2009/04/23 11:46:55] <lak> puppet doesn't log to stdout
[2009/04/23 11:47:15] @ madrescher joined channel #puppet
[2009/04/23 11:47:15] <rgsteele||work> Ungh. Maybe I should start over - what's the easiest way to test a new function?
[2009/04/23 11:48:20] @ Quit: tuf: Read error: 110 (Connection timed out)
[2009/04/23 11:50:10] <lak> rgsteele||work: look in spec/unit/parser/functions/*
[2009/04/23 11:52:54] <HarryCalahan> how do i ensure that puppetd is not running. if i check for puppetd as a pattern won't it kill itself?
[2009/04/23 11:53:07] <HarryCalahan> (i only run puppetd from cron)
[2009/04/23 11:55:13] @ mib_hbiy0n joined channel #puppet
[2009/04/23 11:55:57] @ kolla joined channel #puppet
[2009/04/23 11:56:55] @ Quit: HarryCalahan: "never mind..."
[2009/04/23 11:57:36] @ Quit: pleemans: Read error: 113 (No route to host)
[2009/04/23 11:58:13] <mib_hbiy0n> firs...sorry for my bad english ^^ i would run the puppetd deamon as normal user... ok puppet is working and i am only able to execute files of the normal user BUT I am not able to execute sudo could anyone help me? thanks
[2009/04/23 11:59:37] @ Quit: madrescher: Read error: 113 (No route to host)
[2009/04/23 12:03:23] @ bajan left channel #puppet ()
[2009/04/23 12:05:09] @ kingitchy joined channel #puppet
[2009/04/23 12:12:58] @ Quit: chillitom: Read error: 60 (Operation timed out)
[2009/04/23 12:15:20] @ edwardam joined channel #puppet
[2009/04/23 12:18:25] <mib_hbiy0n> no ideas?
[2009/04/23 12:19:06] <rgsteele||work> The 'file' function pulls files from the client, not the Puppetmaster, correct?
[2009/04/23 12:19:36] <rgsteele||work> Ah, nevermind.
[2009/04/23 12:21:16] <andrewcshafer_> mib_hbiy0n: I don't understand your question.
[2009/04/23 12:21:32] <andrewcshafer_> puppetd normally runs as root
[2009/04/23 12:21:33] @ rdaugherty1 joined channel #puppet
[2009/04/23 12:21:37] @ Quit: rdaugherty: Read error: 104 (Connection reset by peer)
[2009/04/23 12:22:20] @ Quit: WALoeIII: Success
[2009/04/23 12:23:19] <mib_hbiy0n> i know. but i need to run the deamon as normal user
[2009/04/23 12:24:56] <mib_hbiy0n> but as normal user I am not able to exec /usr/bin/sudo in a pp file
[2009/04/23 12:26:09] @ briandquinn joined channel #puppet
[2009/04/23 12:26:11] @ Quit: DerekW: "Leaving"
[2009/04/23 12:27:21] @ Quit: tim|mb: Read error: 110 (Connection timed out)
[2009/04/23 12:28:08] @ Quit: alban2: "A bientot"
[2009/04/23 12:29:00] @ Quit: nasrat: "Ex-Chat"
[2009/04/23 12:29:07] <rgsteele||work> Hm. Is there any way to have a Puppet function read in the contents of a file that's located on the client?
[2009/04/23 12:29:41] <rgsteele||work> My puppet functions reads in a file, but it's trying to do so from the Puppetmaster, and the file just doesn't exist there.
[2009/04/23 12:30:43] <Volcane> only way to get data from client to master for compile time is facts
[2009/04/23 12:30:45] <grim_radical_> rgsteele||work: I don't believe so
[2009/04/23 12:31:24] <rgsteele||work> Volcane: Is that how the 'file' resource type works under the hood?
[2009/04/23 12:32:08] <rgsteele||work> The file resource definitely has knowledge of the client-side environment, being that it modifies permissions, file contents, etc.
[2009/04/23 12:32:29] <rgsteele||work> But I'm not sure exactly what gears it turns to do so.
[2009/04/23 12:32:48] <Volcane> what are you trying to do?
[2009/04/23 12:32:59] <grim_radical_> true, but that's a well-defined set of operations on client-side files. what exactly are you trying to accomplish?
[2009/04/23 12:33:47] <rgsteele||work> I wrote a custom function which needs to check the contents of a file to see if a particular line exists.
[2009/04/23 12:34:03] <rgsteele||work> Basically, I need to read in the contents of a file on the client end of things.
[2009/04/23 12:34:09] @ Quit: bobbyz: "Leaving"
[2009/04/23 12:34:10] <rgsteele||work> From a function.
[2009/04/23 12:35:00] <grim_radical_> I don't think that functions have access to the client environment (beyond facts, that is)
[2009/04/23 12:35:17] <grim_radical_> the functions are evaluated on the puppetmaster, IIRC
[2009/04/23 12:35:37] <Volcane> yup, to do what u want you need to write a proper type and provider
[2009/04/23 12:35:51] <gepetto> ::trac:: Type Reference edited by luke @ http://reductivelabs.com/trac/puppet/wiki/TypeReference (by luke@madstop.com)
[2009/04/23 12:36:33] <rgsteele||work> Well, under the "Accessing Files" sectiong here, it didn't really make that distinction: http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions
[2009/04/23 12:36:40] @ WALoeIII joined channel #puppet
[2009/04/23 12:37:07] <grim_radical_> rgsteele||work: why do you need the line read from the file? are you trying to do something like "append a line to the file if it doesn't exist already"? or some such?
[2009/04/23 12:37:27] <rgsteele||work> grim_radical: Exactly.
[2009/04/23 12:37:51] <grim_radical_> there should be some types already written that do that sort of thing...perhaps in one of the contrib repos?
[2009/04/23 12:37:56] <grim_radical_> let me see if I can dig them up
[2009/04/23 12:38:07] <grim_radical_> but basically, the trick is to use a define instead of a function
[2009/04/23 12:38:19] <grim_radical_> (or make your own type for this in ruby proper)
[2009/04/23 12:38:47] * Volcane 's not tried to run functions client side, not sure...
[2009/04/23 12:38:49] <mib_hbiy0n> i would run the puppetd deamon as normal user... ok puppet is working and i am only able to execute files of the normal user BUT I am not able to execute sudo could anyone help me? thanks
[2009/04/23 12:39:08] <grim_radical_> rgsteele||work: http://reductivelabs.com/trac/puppet/wiki/PracticalTypes
[2009/04/23 12:39:25] <grim_radical_> that's an example of making an append_if_no_such_line type
[2009/04/23 12:39:34] <rgsteele||work> grim_radical_: Handy, thank you very much.
[2009/04/23 12:39:49] <rgsteele||work> I'll adapt what I've got with that - much appreciated.
[2009/04/23 12:40:28] <grim_radical_> I've actually got a small armada of text-manipulation defines...I should see if my employer will let me open-source them
[2009/04/23 12:41:25] @ edwardam is now known as edwardam|skype
[2009/04/23 12:43:37] <rgsteele||work> grim_radical_: I'm heading off to get some lunch, but thanks again for the link - looks like it's gonna be very useful.
[2009/04/23 12:43:53] <grim_radical_> no problem...let us know how the stuff turns out
[2009/04/23 12:44:05] <grim_radical_> mmm...lunch...
[2009/04/23 12:44:07] <rgsteele||work> grim_radical_: Sure thing. Adios.
[2009/04/23 12:44:32] <grim_radical_> I wish I was at lunch...clearly, I'm in the wrong time zone. :P
[2009/04/23 12:45:25] @ Quit: rgsteele||work: Remote closed the connection
[2009/04/23 12:46:08] <grim_radical_> "Time is an illusion. Lunchtime doubly so." --Douglas Adams
[2009/04/23 12:51:54] <andrewcshafer_> mib_hbiy0n: asking the same question I didn't understand the first time doesn't help either of us... What is trying to execute sudo? why? what is the 'normal' user?
[2009/04/23 12:54:34] @ Quit: briandquinn:
[2009/04/23 12:54:36] <mib_hbiy0n> iam MUST run the puppetd deamon as none root user... this works fine. but when i try to execute commands like this ( exec { "/usr/bin/sudo /etc/init.d/httpd start": } ) in a pp file i get an errir
[2009/04/23 12:54:42] <mib_hbiy0n> error
[2009/04/23 12:55:51] <grim_radical_> mib_hbiy0n: can you run with --debug, and pastebin the commands that puppet is trying to execute?
[2009/04/23 12:56:23] <grim_radical_> is /etc/sudoers setup such that the user you're running puppet with can successfully sudo without prompting for a password?
[2009/04/23 12:56:58] <mib_hbiy0n> err: //Node[stm]/sudo/Exec[/usr/bin/sudo /etc/init.d/httpd start]/returns: change from notrun to 0 failed: /usr/bin/sudo /etc/init.d/httpd start returned 1 instead of 0 at /etc/puppet/manifests/classes/sudo.pp:6
[2009/04/23 12:57:24] <grim_radical_> if sudo needs to prompt for a password, your command won't work
[2009/04/23 12:57:38] <mib_hbiy0n> i dont need a password for sudo
[2009/04/23 12:57:59] @ ralferix joined channel #puppet
[2009/04/23 12:58:56] <grim_radical_> and I assume the command works from the shell, executed manually?
[2009/04/23 12:59:09] <mib_hbiy0n> in the console sudo wroks fine but in puppet i geh the error
[2009/04/23 12:59:15] <mib_hbiy0n> yes it works
[2009/04/23 13:00:42] <grim_radical_> so the next thing I'd try is to replace the call to '/etc/init.d/httpd start' with a command that you know will always succeed...try "/usr/bin/sudo /bin/true" or something
[2009/04/23 13:01:06] @ Quit: edwardam|skype: Remote closed the connection
[2009/04/23 13:01:14] <grim_radical_> if you still get a non-zero exit code from that, then that would lead me to believe that sudo is to blame here (as opposed to your httpd init script)
[2009/04/23 13:01:43] <Volcane> does your sudo log say its allowing the commands?
[2009/04/23 13:02:11] <grim_radical_> Volcane: good suggestino
[2009/04/23 13:02:33] <Telmo> if I am recursively managing the contents of a directory, do I need to create the subdirectories or would puppet be smart enough to create them if they are not there?
[2009/04/23 13:03:10] @ edwardam joined channel #puppet
[2009/04/23 13:03:48] @ rdaugherty joined channel #puppet
[2009/04/23 13:03:57] @ Quit: rdaugherty1: "Leaving."
[2009/04/23 13:04:00] <mib_hbiy0n> a ok throuh puppet i not allowed to run sudo
[2009/04/23 13:04:01] <mib_hbiy0n> Apr 23 19:02:58 stm sudo: stm : sorry, you must have a tty to run sudo ; TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/bin/true
[2009/04/23 13:04:30] <Volcane> just configure your sudo not to require a TTY
[2009/04/23 13:04:47] <chu> or use su instead
[2009/04/23 13:05:03] @ voixd joined channel #puppet
[2009/04/23 13:05:14] @ briandquinn joined channel #puppet
[2009/04/23 13:05:19] @ rdaugherty1 joined channel #puppet
[2009/04/23 13:05:24] @ Quit: rdaugherty: Read error: 104 (Connection reset by peer)
[2009/04/23 13:05:41] <Volcane> chu: how would he run commands from puppet - when puppet doesnt run as root using su?
[2009/04/23 13:05:51] <Volcane> it would prompt for passwords and generally just suck
[2009/04/23 13:05:56] <chu> well then
[2009/04/23 13:05:58] <chu> not.
[2009/04/23 13:06:02] <melopt> is there a way to disabble the "watch cofiguration file"-feature?
[2009/04/23 13:06:32] <mib_hbiy0n> a iam an idiot no it works. thanks
[2009/04/23 13:12:18] @ jmarki joined channel #puppet
[2009/04/23 13:13:28] @ rlpowell_ is now known as rlpowell
[2009/04/23 13:14:28] <Volcane> melopt: what do you mean?
[2009/04/23 13:15:01] <melopt> I mean disabling this: notice: Reparsing /etc/puppet/puppet.conf"
[2009/04/23 13:15:09] @ Quit: mfoster: "Leaving."
[2009/04/23 13:15:14] @ Quit: ralferix:
[2009/04/23 13:15:17] @ Quit: briandquinn:
[2009/04/23 13:15:18] <Volcane> why would you want it not to reload its config?
[2009/04/23 13:15:21] <melopt> if the puppet.conf file changes, the master reparses and re-evaluates it
[2009/04/23 13:15:49] @ Quit: mikepea: Read error: 110 (Connection timed out)
[2009/04/23 13:15:58] <melopt> because then I get this: http://pastie.textmate.org/private/vkacsm0gjiboia2j9snz0w
[2009/04/23 13:16:25] <Volcane> you've got some pretty screwed up configuration then
[2009/04/23 13:16:32] <Volcane> or your packages you used is broken or something
[2009/04/23 13:16:43] <melopt> after a reparse, the server is no longer running as root, so those attempts will fail
[2009/04/23 13:16:51] <melopt> /var/puppet is root.root
[2009/04/23 13:16:58] <melopt> so I'm guessing thats the problem
[2009/04/23 13:17:17] <Volcane> what distro?
[2009/04/23 13:17:21] <melopt> source install
[2009/04/23 13:17:21] <Volcane> and how did you install it?
[2009/04/23 13:17:24] <Volcane> ah
[2009/04/23 13:17:24] <melopt> centos
[2009/04/23 13:17:28] <Volcane> why would you source install?
[2009/04/23 13:17:47] <melopt> I prefer source install, no particular reason
[2009/04/23 13:18:52] @ ralferix joined channel #puppet
[2009/04/23 13:19:02] <Volcane> the rpms does it right.
[2009/04/23 13:19:18] <melopt> and by righgt you mean /var/puppet as puppet:puppet?
[2009/04/23 13:19:41] <Volcane> by right i mean the whole thing just works first time, gets installed into LSB compliant places, init scripts that are designed to work with the distro and so forth and so on
[2009/04/23 13:20:58] <melopt> our setup is not lsb compliant, nor do we use init script, we run puppet under daemontools
[2009/04/23 13:21:09] <chu> ew
[2009/04/23 13:21:23] <Volcane> k well, then i dont think we can really help you
[2009/04/23 13:21:26] <grim_radical_> melopt: I do largely the same thing...but still use the rpms
[2009/04/23 13:21:32] <melopt> k
[2009/04/23 13:21:33] <Volcane> things are deisnged to work a specific way
[2009/04/23 13:21:40] <melopt> Volcane, sure, no problem
[2009/04/23 13:21:43] <ralferix> #cloudtools
[2009/04/23 13:22:25] <grim_radical_> melopt: I modified the spec file to not use the init scripts or /etc/sysconfig stuff, but other than that they installed fine
[2009/04/23 13:22:34] <melopt> Rigth now, we don't use many RPMs because we want to keep several versions of the same package installed
[2009/04/23 13:22:51] <melopt> afaik, that is not something that you can do easly with RPM-based installs
[2009/04/23 13:23:48] <melopt> grim_radical_, the supervise stuff is working very well, I'm just understanding how the permissions work on the server that has both a master and a client, given that by default they both use /var/puppet
[2009/04/23 13:24:09] <grim_radical_> the rpms use /var/lib/puppet, and they appear to have the right ownership of puppet:puppet
[2009/04/23 13:24:45] <grim_radical_> yeah, puppet runs great under supervision (I use runit)
[2009/04/23 13:24:55] <melopt> grim_radical, cool, I'll try that.
[2009/04/23 13:25:10] <grim_radical_> if nothing else, I'd look at the spec file that's in the puppet source tree
[2009/04/23 13:25:21] <melopt> grim_radical_, thx
[2009/04/23 13:25:24] <grim_radical_> you can at the very least see what it's doing...what users it creates, what dirs, etc
[2009/04/23 13:25:32] * melopt nods
[2009/04/23 13:27:14] <melopt> right now, I got most of what I needed working: I git push my config to a repo on the master, and the post-update hook updates a local workdir, and asks the client to run. The mastre config points to the workdir so it gets the latest files.
[2009/04/23 13:27:28] <grim_radical_> my main issue with the rpms is that they install puppet into the "system" ruby directories
[2009/04/23 13:27:29] <melopt> Its really nice to see all the vps updating with only one git push
[2009/04/23 13:27:40] <grim_radical_> melopt: indeed...nice setup!
[2009/04/23 13:28:21] @ Quit: MattyM: "ta ta"
[2009/04/23 13:28:35] <melopt> grim_radical_, I hate to waste time not using package managers, but I do need to keep several versions of each package installed in parallel, so I'm used to install things from source to specifc per-package-version directories
[2009/04/23 13:28:50] <grim_radical_> I sympathize
[2009/04/23 13:33:08] * monachus is in limbo.
[2009/04/23 13:34:58] @ Quit: glaw: Remote closed the connection
[2009/04/23 13:36:07] @ gaveen joined channel #puppet
[2009/04/23 13:36:34] <f3ew> Does anyone have an idea about a "unknown method 'groups'" with the User provider?
[2009/04/23 13:36:47] @ jief- joined channel #puppet
[2009/04/23 13:36:57] <f3ew> It's like #948 except that this is a $RHEL 5.2 install, running 0.24.7-1
[2009/04/23 13:36:58] <gepetto> f3ew: #948 is http://projects.reductivelabs.com/issues/show/948 "Puppet - Bug #948: err: Could not create root: undefined method `groups' for #<Puppet::Type::User:0xb77e3ef4> - ReductiveLabs.com"
[2009/04/23 13:37:06] <jief-> hello. does puppet have the ability to auto-append a header to configuration files it modifies?
[2009/04/23 13:37:10] @ dsch04 joined channel #puppet
[2009/04/23 13:40:12] @ Quit: rsquared: "Leaving"
[2009/04/23 13:41:06] @ Quit: BMDan: Read error: 104 (Connection reset by peer)
[2009/04/23 13:41:11] @ Quit: lak:
[2009/04/23 13:41:55] <bevans5446> jief-: Have you looked into templates?
[2009/04/23 13:43:01] <bevans5446> Shouldn't I be able to set before => undef?
[2009/04/23 13:44:13] <jief-> bevans5446: i do. but having to add the same header to each files/templates we serve is kinda tiresome
[2009/04/23 13:44:30] <bevans5446> I created a define foo( $before = undef) so that before is only used if I set it in the function call
[2009/04/23 13:44:35] <jief-> id like to edit it once, and have it applied to every files/templates
[2009/04/23 13:44:45] <jief-> auto-magically ;)
[2009/04/23 13:45:27] <bevans5446> jief-: I'm don't think puppet has anything like that
[2009/04/23 13:47:41] <jief-> bevans5446: that'd be a wicked feature to have
[2009/04/23 13:47:48] <jief-> and our reason to have it is simle
[2009/04/23 13:47:58] <jief-> how do you tell if a file can be modified locally or not?
[2009/04/23 13:48:08] <jief-> does it have to be changed on puppetmasterd?
[2009/04/23 13:48:13] <jief-> hence the header
[2009/04/23 13:48:14] <bevans5446> I had a feeling that's what you were doing
[2009/04/23 13:48:39] <bevans5446> It sucks, but I've just been adding a warning to to top of every file that is edited
[2009/04/23 13:48:49] <bevans5446> errr, not edited, managed by puppet
[2009/04/23 13:48:56] <Volcane> i think the complexity is that not all config files use the same syntax ofr comments etcetc
[2009/04/23 13:49:14] <Volcane> ones that it does manage using types like crontab{} etc do get comments
[2009/04/23 13:49:35] <jief-> Volcane: good point
[2009/04/23 13:49:49] <jief-> its probably fine if you have less than 100 machines
[2009/04/23 13:50:10] <jief-> but we're about to reach 3000 virtual machines, and we just don't have time to figure out which is managed by puppet and which isn't
[2009/04/23 13:50:23] <Volcane> like when you log into them you mean?
[2009/04/23 13:51:05] @ Quit: voixd: Read error: 110 (Connection timed out)
[2009/04/23 13:51:35] <Volcane> so you log into one of these 3k machines and then wonder, can you edit things or not?
[2009/04/23 13:51:39] <jief-> ya i thought id be a smartie and do that
[2009/04/23 13:51:51] <Volcane> so not trying to be funny or anything, but set a motd and change the prompts?
[2009/04/23 13:51:57] <jief-> but /etc/motd isn't served when you enter a VE in openvz in some cases
[2009/04/23 13:52:21] <jief-> prompts are personal ;) i wouldn't dare touch the one of my coworkers ehe
[2009/04/23 13:52:27] <Volcane> like maybe use a right hand side prompt (not sure if bash supports this yet) that says "puppet box!"
[2009/04/23 13:52:31] <jief-> we wouldn't have that issue if we used something else than openvz
[2009/04/23 13:52:49] <jief-> when you 'vzctl enter 1234'
[2009/04/23 13:52:54] * Volcane 's prompts does something like if [ -f /etc/puppetmanaged ]....
[2009/04/23 13:52:58] <jief-> you don't even show up in the users logged in
[2009/04/23 13:53:03] @ Quit: alfism: "Connection reset by beer"
[2009/04/23 13:53:05] <Volcane> and get a diff prompt on puppet machines..
[2009/04/23 13:53:14] <Volcane> then coworkers can do however they want it
[2009/04/23 13:53:15] <jief-> hmm not a bad idea though
[2009/04/23 13:53:33] <Volcane> my zsh rc is standard across them all etc
[2009/04/23 13:59:19] <bevans5446> does anyone see a problem with this define? http://pastebin.com/m360e3cfc
[2009/04/23 13:59:23] @ tim|mb joined channel #puppet
[2009/04/23 13:59:52] <bevans5446> the goal is to have "before => undef" by default but be able to over ride it when needed
[2009/04/23 14:00:19] <bevans5446> puppet is complaining err: Could not create pear_update_pear.php.net: Parameter before failed: interning empty string
[2009/04/23 14:00:35] @ claymation joined channel #puppet
[2009/04/23 14:00:52] <Volcane> obviously you cant set undef before
[2009/04/23 14:02:11] <bevans5446> It seems as though you should be able to
[2009/04/23 14:02:19] <Volcane> why?
[2009/04/23 14:02:21] @ lak joined channel #puppet
[2009/04/23 14:02:29] <Volcane> i mean what makes it seem so?
[2009/04/23 14:02:44] <bevans5446> how else can I use it in a define when I want the default to be nothing?
[2009/04/23 14:03:08] <bevans5446> I guess I can use an if/selector
[2009/04/23 14:03:42] @ mikepea joined channel #puppet
[2009/04/23 14:04:40] <bevans5446> wait....can I just set before as a perimeter without having it within the define? (testing now)
[2009/04/23 14:08:58] @ randybias joined channel #puppet
[2009/04/23 14:10:04] @ pheezy joined channel #puppet
[2009/04/23 14:11:23] <pheezy> peeps, i'm trying to learn puppet using the sudoers file as suggested, but i keep getting syntax errors: http://pastebin.com/d1b182235
[2009/04/23 14:11:24] <pheezy> :(
[2009/04/23 14:11:58] <pheezy> i got my info from here: http://reductivelabs.com/trac/puppet/wiki/Recipes/CentralizedSudoers ?
[2009/04/23 14:14:32] @ Quit: melopt: "Leaving"
[2009/04/23 14:15:27] @ voixd joined channel #puppet
[2009/04/23 14:15:41] <Volcane> put quotes around ".puppet-backup"
[2009/04/23 14:15:54] <Volcane> not sure about the other, my puppet doesnt give an error on that and it looks fine too
[2009/04/23 14:16:13] @ ezmob joined channel #puppet
[2009/04/23 14:17:48] <pheezy> hmm ok that worked, i get now an error Cannot access mount[files] o_O
[2009/04/23 14:18:13] <Volcane> http://www.devco.net/pubwiki/Puppet/GettingStarted thats a guide that covers everything you need
[2009/04/23 14:18:37] <pheezy> cool thanks man
[2009/04/23 14:18:41] <pheezy> or woman
[2009/04/23 14:18:48] <Volcane> ) man
[2009/04/23 14:18:49] <Volcane> :)
[2009/04/23 14:19:28] @ melopt joined channel #puppet
[2009/04/23 14:19:31] @ Quit: melopt: Remote closed the connection
[2009/04/23 14:23:50] <pheezy> sweet, it works o_O
[2009/04/23 14:26:39] @ Quit: ralferix:
[2009/04/23 14:26:51] @ rdaugherty joined channel #puppet
[2009/04/23 14:26:56] @ Quit: rdaugherty1: Read error: 104 (Connection reset by peer)
[2009/04/23 14:34:42] @ Quit: mikepea:
[2009/04/23 14:34:43] <pheezy> for the package type, isn't using ensure => latest kind of...well dangerous?
[2009/04/23 14:34:54] <Volcane> thats why its optional :P
[2009/04/23 14:35:24] <grim_radical_> it's less dangerous, I suppose, if you point your boxes at local mirrors with known revs of packages
[2009/04/23 14:35:40] <pheezy> ohh i see, how do you tell it's optional in the type reference?
[2009/04/23 14:35:56] <Volcane> well i mean you can use ensure => latest, or just ensure => present
[2009/04/23 14:36:00] <Volcane> or even ensure => 1.1.1
[2009/04/23 14:36:06] <Volcane> you dont need to say latest is what i mean
[2009/04/23 14:36:16] <pheezy> oh i understand now
[2009/04/23 14:36:29] <sc0ttB> as long as the package signatures are valid it should be ok (security-wise)
[2009/04/23 14:38:31] @ Quit: kingitchy: Remote closed the connection
[2009/04/23 14:39:42] <Volcane> for me the bigger annoyance is that ensure => latest can end up with daemons restarting unexpectadly etc
[2009/04/23 14:39:51] @ Quit: tim|mb:
[2009/04/23 14:39:54] <Volcane> would rather manage updates carefully
[2009/04/23 14:40:41] @ tim|mb joined channel #puppet
[2009/04/23 14:40:47] <pheezy> yes, and i can imagine incompatabilities arising as well :X
[2009/04/23 14:40:51] @ Quit: mib_hbiy0n: "http://www.mibbit.com ajax IRC Client"
[2009/04/23 14:40:59] @ Quit: tim|mb: Client Quit
[2009/04/23 14:42:55] @ Quit: lak:
[2009/04/23 14:43:33] @ kingitchy joined channel #puppet
[2009/04/23 14:45:05] <dsch04> Funny, I was just going to ask a very similar question.
[2009/04/23 14:45:14] <dsch04> About "ensure => ..."
[2009/04/23 14:45:56] <dsch04> What are valid version strings?
[2009/04/23 14:46:14] <Volcane> they get passed to the package provider verbatim
[2009/04/23 14:49:01] <dsch04> So, for example, looking at the current version of mysql on one of my boxes I see:
[2009/04/23 14:49:10] <dsch04> # rpm -q mysql
[2009/04/23 14:49:10] <dsch04> mysql-5.1.34-1.el5.remi
[2009/04/23 14:49:33] <Volcane> type: ralsh package mysql
[2009/04/23 14:49:59] <dsch04> So, you keep that version installed...
[2009/04/23 14:50:03] <dsch04> Wow, that's cool!
[2009/04/23 14:50:09] @ tuf joined channel #puppet
[2009/04/23 14:50:22] <Volcane> try ralsh user youruser
[2009/04/23 14:50:24] <Volcane> etc :)
[2009/04/23 14:50:37] <pheezy> :O
[2009/04/23 14:50:38] <pheezy> that is awesome
[2009/04/23 14:51:02] @ Quit: zobbo:
[2009/04/23 14:51:16] <dsch04> RAL?
[2009/04/23 14:51:25] @ greenmoss joined channel #puppet
[2009/04/23 14:51:49] <Volcane> donno what its short for
[2009/04/23 14:52:05] <dsch04> Heh, the man page needs work :)
[2009/04/23 14:52:12] <dsch04> NAME
[2009/04/23 14:52:12] <dsch04> -
[2009/04/23 14:52:12] <dsch04> vim: softtabstop=4 shiftwidth=4 expandtab
[2009/04/23 14:52:34] <Volcane> what version puppet you on?
[2009/04/23 14:52:45] <dsch04> puppet-0.24.8-1.el5.1
[2009/04/23 14:53:01] <Volcane> k
[2009/04/23 14:54:03] @ Quit: erm: "leaving"
[2009/04/23 14:54:04] <dsch04> puppet is similar, i.e. no NAME
[2009/04/23 14:54:13] @ erm joined channel #puppet
[2009/04/23 14:54:16] @ mikepea joined channel #puppet
[2009/04/23 14:54:34] <Volcane> ah whatever makes man pages from rdoc sux
[2009/04/23 14:54:47] <Volcane> puppet --help is fine if you install ruby-rdoc
[2009/04/23 14:55:22] @ Quit: edwardam: Remote closed the connection
[2009/04/23 14:55:36] <dsch04> It's the same - no name
[2009/04/23 14:55:49] @ ralferix joined channel #puppet
[2009/04/23 14:56:25] @ Quit: jhulten: "leaving"
[2009/04/23 14:56:33] <dsch04> Anyway - good to know about ensure =>
[2009/04/23 14:57:01] @ jhulten joined channel #puppet
[2009/04/23 14:57:10] <dsch04> I'm about to spec a provisioning architecture for ~40 servers, using cobbler + puppet, + possibly capistrano
[2009/04/23 14:57:31] <dsch04> That was one of the missing links I had
[2009/04/23 14:57:51] @ Quit: voixd: Read error: 110 (Connection timed out)
[2009/04/23 14:58:37] @ Quit: jmarki: "Leaving"
[2009/04/23 14:58:56] @ jmarki joined channel #puppet
[2009/04/23 14:59:00] <Volcane> for 40 servers you'll want to replce the default crappy webrick in puppet with mongrel http://reductivelabs.com/trac/puppet/wiki/UsingMongrel
[2009/04/23 14:59:12] <Volcane> or nginx, or passenger, links at the top of that page
[2009/04/23 14:59:17] <dsch04> Yup, that's one other thing I need to do
[2009/04/23 14:59:37] <dsch04> Any particular reccomendation?
[2009/04/23 14:59:43] <dsch04> Or recommendation, even?
[2009/04/23 14:59:59] <Volcane> mongrel works, not sure if its inherently better or worse than the other options
[2009/04/23 15:00:15] <Volcane> though at like 600 machines mongrel on a single box isnt gonna do it either
[2009/04/23 15:00:23] <Volcane> then u need to look at scaling to more machines etc
[2009/04/23 15:00:42] <dsch04> Just the 40 machines
[2009/04/23 15:00:57] @ Quit: mikepea:
[2009/04/23 15:01:08] <dsch04> Actually, puppet will be piggy-backing on a MySQL slave server
[2009/04/23 15:01:28] @ alfism joined channel #puppet
[2009/04/23 15:01:30] <Volcane> then it should be just fine, just make sure you've lots of ram, puppet takes like a gig depending on various factors
[2009/04/23 15:01:32] <Volcane> the master
[2009/04/23 15:01:41] <dsch04> Yup
[2009/04/23 15:04:00] @ randybias is now known as randybias|away
[2009/04/23 15:05:25] @ Quit: lurbs: Remote closed the connection
[2009/04/23 15:05:52] @ Quit: jief-: "Lost terminal"
[2009/04/23 15:07:11] @ schwagala joined channel #puppet
[2009/04/23 15:07:46] @ jmarki is now known as jmarki|sleep
[2009/04/23 15:08:01] @ Quit: ralferix:
[2009/04/23 15:09:30] @ Quit: schwagal1: Read error: 60 (Operation timed out)
[2009/04/23 15:11:08] @ Quit: tuf: Read error: 110 (Connection timed out)
[2009/04/23 15:14:03] @ ezmob is now known as ezmob|away
[2009/04/23 15:15:50] @ lurbs joined channel #puppet
[2009/04/23 15:16:14] @ randybias|away is now known as randybias
[2009/04/23 15:17:10] <pheezy> can i have a service that subscribes to multiple files ?
[2009/04/23 15:17:19] <grim_radical_> phantez: yes
[2009/04/23 15:17:24] <grim_radical_> sorry, that's for pheezy
[2009/04/23 15:17:43] <pheezy> is the syntax subscribe => File["ntp.conf"],Package["ntp"] ?
[2009/04/23 15:17:48] @ m1n3s6 joined channel #puppet
[2009/04/23 15:17:59] <grim_radical_> subscribe => [File["ntp.conf"], Package["ntp"]]
[2009/04/23 15:18:16] <pheezy> oh double trouble brackets...cool thanks :)
[2009/04/23 15:18:22] <grim_radical_> np
[2009/04/23 15:20:02] @ Quit: schwagala: Read error: 60 (Operation timed out)
[2009/04/23 15:20:56] @ Quit: lurbs: Remote closed the connection
[2009/04/23 15:21:22] @ lurbs joined channel #puppet
[2009/04/23 15:22:21] @ ezmob|away is now known as ezmob
[2009/04/23 15:23:27] @ schwagala joined channel #puppet
[2009/04/23 15:24:19] <pheezy> ok so i have one final question, i have this as part of my NTP class, and i want to make sure that the servers used have the correct $domain, so do I create a template or do I "content" parameter for the file type, and if so how do I determine where to put the logic to check the domain?
[2009/04/23 15:24:22] <pheezy> http://pastebin.com/d25309ba7
[2009/04/23 15:25:28] <grim_radical_> pheezy: I'm not sure I understand what you're trying to do
[2009/04/23 15:25:43] <grim_radical_> you just want to check that every machine's $domain equals a certain fixed string?
[2009/04/23 15:26:12] <pheezy> no i want to use every machine's $domain as the $domain for a ntp server in the ntp.conf file, so ntp1.$domain etc
[2009/04/23 15:26:17] <pheezy> for both that and the step-tickers file :X
[2009/04/23 15:26:21] <pheezy> does that make sense?
[2009/04/23 15:26:22] <grim_radical_> oh, ok
[2009/04/23 15:26:56] <grim_radical_> then yes, instead of "source =>" you'd use "content =>"
[2009/04/23 15:27:11] <grim_radical_> and just refer to $domain inside of the content
[2009/04/23 15:27:27] @ Quit: lurbs: Remote closed the connection
[2009/04/23 15:27:35] @ lurbs joined channel #puppet
[2009/04/23 15:28:50] <pheezy> oh ok but i still also need to use the $virtual fact
[2009/04/23 15:29:03] <pheezy> i guess i just treat it as a case switch then :X
[2009/04/23 15:29:20] <pheezy> s/switch/statement
[2009/04/23 15:33:37] <pheezy> so like this: http://pastebin.com/mdaf0ff8
[2009/04/23 15:33:41] @ Quit: lurbs: Remote closed the connection
[2009/04/23 15:34:58] @ Quit: Disconnect: Read error: 104 (Connection reset by peer)
[2009/04/23 15:35:02] @ lurbs joined channel #puppet
[2009/04/23 15:35:24] <grim_radical_> is the only diff between the $virtual case and the normal case the "panic" line?
[2009/04/23 15:36:46] <pheezy> yes, as of now according to VMWare
[2009/04/23 15:37:31] @ Disconnect joined channel #puppet
[2009/04/23 15:37:38] @ Quit: Disconnect: Read error: 104 (Connection reset by peer)
[2009/04/23 15:37:45] <pheezy> i don't know if it can change but I would like to be able to push any changes through puppet in the future
[2009/04/23 15:37:47] <pheezy> :)
[2009/04/23 15:39:07] @ Quit: schwagala: Read error: 54 (Connection reset by peer)
[2009/04/23 15:39:37] @ Quit: lurbs: Remote closed the connection
[2009/04/23 15:39:52] @ briandquinn joined channel #puppet
[2009/04/23 15:39:59] @ lurbs joined channel #puppet
[2009/04/23 15:42:21] @ BMDan joined channel #puppet
[2009/04/23 15:45:22] @ schwagala joined channel #puppet
[2009/04/23 15:51:26] @ Disconnect joined channel #puppet
[2009/04/23 15:52:17] @ Quit: jmarki|sleep: Remote closed the connection
[2009/04/23 15:53:37] @ Quit: MarlondB:
[2009/04/23 15:55:08] @ Quit: briandquinn:
[2009/04/23 16:00:20] <dsch04> Hrm
[2009/04/23 16:00:55] <dsch04> I set PUPPETMASTER_PORTS as specified on http://reductivelabs.com/trac/puppet/wiki/UsingMongrel
[2009/04/23 16:01:04] <dsch04> But, only one instance is started.
[2009/04/23 16:01:21] <dsch04> And it seems to be started webrick,. not mongrel
[2009/04/23 16:01:22] <dsch04> Port: 18141Could not start WEBrick: Address already in use - bind(2)
[2009/04/23 16:01:22] <dsch04> [FAILED]
[2009/04/23 16:06:32] @ voixd joined channel #puppet
[2009/04/23 16:06:36] <dsch04> Ah, it was a dodgy config file
[2009/04/23 16:08:44] @ Quit: schwagala: Read error: 60 (Operation timed out)
[2009/04/23 16:08:51] <jrojas> dsch04: please use pasty for anything longer than one line.
[2009/04/23 16:10:57] @ zobbo joined channel #puppet
[2009/04/23 16:11:55] <pheezy> hey how do I make my class prettier, eg I want to indent the lines under $ntp_conf_framework, but if I do that they are wicked indented in the realized file: http://pastie.org/456233
[2009/04/23 16:12:15] <jrojas> pheezy: is it an erb template?
[2009/04/23 16:12:34] <pheezy> no it's just a filetype using the content parameter
[2009/04/23 16:13:02] @ zobbo left channel #puppet ()
[2009/04/23 16:13:13] @ randybias is now known as randybias|away
[2009/04/23 16:13:22] <jrojas> pheezy: try using an erb template instead.
[2009/04/23 16:13:24] <jrojas> itll be easier.
[2009/04/23 16:14:11] <pheezy> oh :/
[2009/04/23 16:14:25] <jrojas> plus it will make your class cleaner
[2009/04/23 16:14:35] @ schwagala joined channel #puppet
[2009/04/23 16:16:44] <jrojas> mmm coffee.
[2009/04/23 16:18:03] <cwebber> does any1 know if puppet is in the standard centos repositories?
[2009/04/23 16:18:46] @ cw_ joined channel #puppet
[2009/04/23 16:19:20] <pheezy> i know it is EPEL
[2009/04/23 16:19:26] <pheezy> it is in EPEL*
[2009/04/23 16:21:09] @ edwardam joined channel #puppet
[2009/04/23 16:23:19] @ Quit: schwagala: Read error: 54 (Connection reset by peer)
[2009/04/23 16:26:51] @ masterzen joined channel #puppet
[2009/04/23 16:27:32] @ WALoeIII_ joined channel #puppet
[2009/04/23 16:28:29] @ schwagala joined channel #puppet
[2009/04/23 16:31:22] @ Quit: WALoeIII_: Client Quit
[2009/04/23 16:31:28] @ Quit: cw_: "Leaving..."
[2009/04/23 16:32:23] @ cw_ joined channel #puppet
[2009/04/23 16:33:17] @ Quit: greenmoss:
[2009/04/23 16:34:50] @ WALoeIII_ joined channel #puppet
[2009/04/23 16:35:47] @ Quit: WALoeIII_: Client Quit
[2009/04/23 16:36:12] @ tuf joined channel #puppet
[2009/04/23 16:37:34] @ rgsteele||work joined channel #puppet
[2009/04/23 16:37:50] <rgsteele||work> Can you 'require' a realization?
[2009/04/23 16:39:32] @ WALoeIII_ joined channel #puppet
[2009/04/23 16:39:38] <gepetto> ::trac:: Using Mongrel OnEnterprise Linux edited by robinbowes @ http://reductivelabs.com/trac/puppet/wiki/UsingMongrelOnEnterpriseLinux (by robin-puppet-wiki@robinbowes.com)
[2009/04/23 16:42:23] @ Quit: tuf: Read error: 60 (Operation timed out)
[2009/04/23 16:44:16] @ tuf joined channel #puppet
[2009/04/23 16:44:38] @ Quit: WALoeIII: Read error: 113 (No route to host)
[2009/04/23 16:45:51] @ ezmob is now known as ezmob|away
[2009/04/23 16:45:57] @ Quit: WALoeIII_:
[2009/04/23 16:50:27] @ ezmob|away is now known as ezmob
[2009/04/23 16:53:20] @ lak joined channel #puppet
[2009/04/23 16:56:05] <gepetto> ::trac:: Using Mongrel OnEnterprise Linux edited by robinbowes @ http://reductivelabs.com/trac/puppet/wiki/UsingMongrelOnEnterpriseLinux (by robin-puppet-wiki@robinbowes.com)
[2009/04/23 16:56:05] <gepetto> ::trac:: Using Mongrel OnEnterprise Linux edited by robinbowes @ http://reductivelabs.com/trac/puppet/wiki/UsingMongrelOnEnterpriseLinux (by robin-puppet-wiki@robinbowes.com)
[2009/04/23 17:04:03] <rgsteele||work> lak: Do you know if automatic realization of virtual resources is going to make it in to 0.24.x?
[2009/04/23 17:04:21] <lak> rgsteele||work: we don't plan on having any more 0.24.x releases, so no
[2009/04/23 17:05:16] @ randybias|away is now known as randybias
[2009/04/23 17:09:17] @ fujin joined channel #puppet
[2009/04/23 17:11:21] <pheezy> can i make a class that only runs conditionally in site.pp if it matches some fact? or is that only possible within classes
[2009/04/23 17:11:33] <lak> you can do it in site.pp
[2009/04/23 17:11:51] <pheezy> so like in default I could say if virtual=vmware include this class etc
[2009/04/23 17:17:13] @ rdaugherty1 joined channel #puppet
[2009/04/23 17:17:15] @ Quit: rdaugherty: Read error: 104 (Connection reset by peer)
[2009/04/23 17:19:03] <lak> yeah
[2009/04/23 17:19:24] @ incommon_ike joined channel #puppet
[2009/04/23 17:20:02] <dsch04> Blimey, I didn't realise that every edit I do on the wiki is announced in here with my full email address!
[2009/04/23 17:21:25] <incommon_ike> if I want the puppetmaster to do a restart on say web01 only, outside of the normal polling interval can I do this?
[2009/04/23 17:24:07] <rgsteele||work> Hrm, I'm stumped. How can you ensure that a virtual resource is realized before any other resources in the same scope?
[2009/04/23 17:24:26] <rgsteele||work> I've tried using metaparameters to no avail.
[2009/04/23 17:25:10] <rgsteele||work> There's got to be some way to control the dependency flow with virtual resources. ....right?
[2009/04/23 17:27:22] @ Quit: rdaugherty1: "Leaving."
[2009/04/23 17:27:22] @ rdaugherty joined channel #puppet
[2009/04/23 17:27:26] <incommon_ike> alright...it looks like puppetrun is the answer to my question. I would need to configure the puppetd to start with --listen.
[2009/04/23 17:28:12] <incommon_ike> but is there an example somewhere on how to submit a puppetrun request from the master to the client?
[2009/04/23 17:28:40] @ Quit: claymation:
[2009/04/23 17:29:27] @ Quit: edwardam: Remote closed the connection
[2009/04/23 17:30:57] <lak> rgsteele||work: you shouldn't need to ensure that
[2009/04/23 17:31:03] <lak> why would it matter when it's realized?
[2009/04/23 17:31:05] @ madrescher joined channel #puppet
[2009/04/23 17:31:16] @ edwardam joined channel #puppet
[2009/04/23 17:31:25] @ claymation joined channel #puppet
[2009/04/23 17:31:25] @ Quit: claymation: Client Quit
[2009/04/23 17:31:55] @ edwardam is now known as edwardam|mtg
[2009/04/23 17:32:17] <rgsteele||work> lak: I have a situation where a user "foo" doesn't exist yet on a box. In a class "bar", I realize that user, and I also create a file whose user/group ownership is "foo".
[2009/04/23 17:32:25] @ claymation joined channel #puppet
[2009/04/23 17:32:29] <rgsteele||work> I keep getting failures because user "foo" isn't defined.
[2009/04/23 17:32:34] <lak> right, but the realization all happens on the server
[2009/04/23 17:32:42] <lak> long before any file may or may not get created on the client
[2009/04/23 17:32:56] <lak> you sure that the user is actually getting realized?
[2009/04/23 17:33:12] <lak> if you look in the localconfig.yaml file, do you see the user in there?
[2009/04/23 17:34:34] * Volcane 's had trouble with virtual resources too along similar lines
[2009/04/23 17:34:36] @ Djelibeybi joined channel #puppet
[2009/04/23 17:34:59] @ WALoeIII joined channel #puppet
[2009/04/23 17:34:59] @ Quit: WALoeIII: Dead socket
[2009/04/23 17:35:06] @ WALoeIII joined channel #puppet
[2009/04/23 17:35:07] @ kambiz is now known as kambiz_away
[2009/04/23 17:35:14] <rgsteele||work> lak: I'm using --ignorecache, so would that matter?
[2009/04/23 17:35:20] <lak> no
[2009/04/23 17:36:09] <rgsteele||work> And, once I create the user manually on the box with useradd, the manifest runs fine.
[2009/04/23 17:37:00] <Volcane> if you didnt create the user iwth a virtual resource with with a normal one does it work properly then?
[2009/04/23 17:37:04] <Volcane> just curious
[2009/04/23 17:38:45] <rgsteele||work> I dunno, haven't tried that yet. The point is, that I need some way to ensure that the virtual resource gets realized before other resources in the same scope, because it clearly causes problems if the other resources require that virtual resource to be realized.
[2009/04/23 17:39:02] <Volcane> yeah
[2009/04/23 17:39:14] <rgsteele||work> And, metaparameters don't seem to work (e.g., 'before')
[2009/04/23 17:39:44] <rgsteele||work> Right now, the only thing that works is going to each box, manually creating the user, and then re-running puppetd
[2009/04/23 17:40:03] <rgsteele||work> lak: FWIW, I'm running 0.24.8
[2009/04/23 17:41:35] <rgsteele||work> lak: And, the user is in localconfig.yaml
[2009/04/23 17:42:00] <rgsteele||work> But again, using --ignorecache, so that should be irrelevant.
[2009/04/23 17:42:08] * rgsteele||work sighs
[2009/04/23 17:42:33] @ Quit: masterzen: "Exploring other worlds"
[2009/04/23 17:43:06] <rgsteele||work> At least clusterssh makes creating the user a little less painful.
[2009/04/23 17:43:26] <jbooth> lak: is there an easy way to get a resource/provider if I know the type and the symbolic name of the resource?
[2009/04/23 17:44:18] <rgsteele||work> Should I file a bug, re: virtual resources being realized in the same scope in which they're needed causing manifest failures?
[2009/04/23 17:44:41] <Volcane> can you reproduce it with a simple manifest?
[2009/04/23 17:45:24] <rgsteele||work> Probably, although right now I'm trying to fix this asap so $boss doesn't get upset.
[2009/04/23 17:45:43] <Djelibeybi> lak: ping?
[2009/04/23 17:46:41] <lak> i'm kind of around
[2009/04/23 17:47:08] <Volcane> rgsteele||work: are you saying something like this: http://pastie.org/456381 doesnt always happen in the right order?
[2009/04/23 17:47:11] <lak> jbooth: you mean in ruby? you mean the resource type and provider, or an individual resource? while parsing? on the client? etc.
[2009/04/23 17:47:38] <lak> Volcane: does that happen to you?
[2009/04/23 17:47:50] <Volcane> not in that example
[2009/04/23 17:48:37] <jbooth> lak: in ruby, looking from the POV of a provider. In provider code I'm trying to iterate through resource[:require] and inspect them.
[2009/04/23 17:48:53] <Volcane> but I've been avoiding virtual resources cos of the thing i filed a bug about - require => Class["foo"] doesnt mean resources being realized in foo will be done etc, that just doesnt work for me so i've been getting rid of them till its fixed
[2009/04/23 17:48:54] <lak> ah
[2009/04/23 17:49:39] <lak> jbooth: if you want an individual resource, you can do 'resource = catalog.resource(type, title)'
[2009/04/23 17:49:50] <jbooth> lak: Perfect, thanks!
[2009/04/23 17:49:51] <lak> and i think the resource[:require] stuff is currently just an array of [type, title]
[2009/04/23 17:50:01] <lak> but that's been changing a bit so don't quote me on it
[2009/04/23 17:50:02] <jbooth> it is
[2009/04/23 17:50:07] <jbooth> at least in 24.8
[2009/04/23 17:50:30] <rgsteele||work> Volcane: http://pastie.org/456385
[2009/04/23 17:51:08] * jbooth thinks he sees how this should generalize (which will then make implementing OrderedParsedFile easy) but wants to write an example first to make sure I'm not missing anything.
[2009/04/23 17:51:29] <Volcane> rgsteele||work: and you obviously tried shuffling the order of things round? overriding before realizing etc?
[2009/04/23 17:52:15] @ randybias is now known as randybias|away
[2009/04/23 17:52:33] <rgsteele||work> Volcane: Well, the issue is that the 'homedir' definition fails to run because it doesn't think the user has been realized yet.
[2009/04/23 17:53:47] <rgsteele||work> But, once I create the user on the server, the manifest runs just fine.
[2009/04/23 17:53:55] <Djelibeybi> lak: got time for a quick pm?
[2009/04/23 17:54:14] <Volcane> nods, its pretty odd that really shouldnt happen
[2009/04/23 17:55:02] <rgsteele||work> I'm pretty sure there's a problem with the evaluation order. E.g., the virtual resource isn't being handled before the other things, as lak stated they should.
[2009/04/23 17:55:56] <lak> Djelibeybi: sure
[2009/04/23 17:56:21] <lak> rgsteele||work: on the server? you shouldn't need to make the user on the server
[2009/04/23 17:56:46] <rgsteele||work> lak: You're right, I don't need to.
[2009/04/23 17:57:35] <rgsteele||work> But, I need the user, which is a virtual resource, to be realized before other resources which depend on that user are evaluated within the same scope.
[2009/04/23 17:57:48] <rgsteele||work> Currently, there appears to be no way to guarantee that.
[2009/04/23 17:58:09] @ Quit: incommon_ike: "Leaving"
[2009/04/23 17:58:15] <pheezy> don't yo use 'require' for that ?
[2009/04/23 17:58:25] <rgsteele||work> The only way I could get my manifests to run is by clusterssh'ing to every box and running groupadd/useradd.
[2009/04/23 17:58:57] <rgsteele||work> pheezy: Metaparameters don't seem to work for virtual resources; before, require, et. al.
[2009/04/23 17:59:37] @ babatoko joined channel #puppet
[2009/04/23 18:00:11] <pheezy> hmm i haven't come across virtual resources yet unfortunately :X
[2009/04/23 18:00:13] @ andrewcshafer_ is now known as andrewcshafer
[2009/04/23 18:00:41] @ randybias|away is now known as randybias
[2009/04/23 18:00:46] <lak> rgsteele||work: a) these relationships should be automatic, and b) have you tested that metaparams don't work for virtual resources? can you show me an example snippet that doesn't work?
[2009/04/23 18:01:11] @ Quit: tim|imac: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:12] @ Quit: Berge: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:12] @ Quit: barn: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:12] @ Quit: madduck: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:13] @ Quit: _nono_: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:13] @ Quit: FiXion: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:14] @ Quit: johnf1911: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:14] @ Quit: duritong: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:15] @ Quit: avleen_: pratchett.freenode.net irc.freenode.net
[2009/04/23 18:01:26] <rgsteele||work> lak: http://pastie.org/456385
[2009/04/23 18:01:58] <lak> what release? 0.24.8?
[2009/04/23 18:02:02] <rgsteele||work> Once I created the storage user on the server, it ran just fine.
[2009/04/23 18:02:05] <rgsteele||work> lak: Yep
[2009/04/23 18:02:23] @ tim|imac joined channel #puppet
[2009/04/23 18:02:23] @ Berge joined channel #puppet
[2009/04/23 18:02:23] @ avleen_ joined channel #puppet
[2009/04/23 18:02:23] @ barn joined channel #puppet
[2009/04/23 18:02:23] @ FiXion joined channel #puppet
[2009/04/23 18:02:23] @ duritong joined channel #puppet
[2009/04/23 18:02:23] @ _nono_ joined channel #puppet
[2009/04/23 18:02:23] @ johnf1911 joined channel #puppet
[2009/04/23 18:02:23] @ madduck joined channel #puppet
[2009/04/23 18:02:33] <lak> when you say "server" here, you mean the puppetmaster, or the client running puppetd?
[2009/04/23 18:02:41] <rgsteele||work> The client running puppetd
[2009/04/23 18:02:49] <lak> ok *whew*
[2009/04/23 18:02:54] <rgsteele||work> Sorry for being ambiguous
[2009/04/23 18:03:15] <Volcane> i can reproduce it
[2009/04/23 18:03:37] <Volcane> http://pastie.org/456397
[2009/04/23 18:03:52] <rgsteele||work> Yep, exactly.
[2009/04/23 18:04:13] <rgsteele||work> If you create the group/user on the client, and then re-run, it goes off without a hitch.
[2009/04/23 18:04:34] <rgsteele||work> And, using before/require/etc. makes no difference.
[2009/04/23 18:04:43] <lak> Volcane: is that filed?
[2009/04/23 18:04:55] <lak> i know you had a problem with them, but i thought it was some kind of autorealization problem
[2009/04/23 18:05:03] <Volcane> i just - now that rgsteele||work showed us - managed to preproduce it
[2009/04/23 18:05:13] <Volcane> I've seen things but never really been able to get it down to such a simple case
[2009/04/23 18:05:33] <Volcane> like earlier i tried it with files, couldnt produce it, one file depending on another virtual file
[2009/04/23 18:05:36] <Volcane> but with users it works
[2009/04/23 18:05:52] <Volcane> for all values of "works" where it doesnt :P
[2009/04/23 18:06:26] <Volcane> rgsteele||work: show us one of your user bits,where you make the virtual resources?
[2009/04/23 18:06:29] <lak> Volcane: can you file that?
[2009/04/23 18:07:05] <Volcane> my test might have been retarded there
[2009/04/23 18:07:16] <Volcane> cos as soon as I add "ensure => present" to my user - around like 3 - it works
[2009/04/23 18:07:35] <Volcane> so lets see how rgsteele||work's users look
[2009/04/23 18:09:08] <rgsteele||work> Volcane: http://pastie.org/456407
[2009/04/23 18:09:14] <Volcane> yeah
[2009/04/23 18:09:18] <Volcane> add ensure => present to that
[2009/04/23 18:09:20] <Volcane> problem gone
[2009/04/23 18:10:07] @ Quit: kolla: Remote closed the connection
[2009/04/23 18:10:42] @ Quit: pheezy: Remote closed the connection
[2009/04/23 18:11:23] <rgsteele||work> Didn't work for me
[2009/04/23 18:11:30] <Volcane> hmm
[2009/04/23 18:11:37] <Volcane> then i cant reproduce it
[2009/04/23 18:12:33] @ Quit: aymerick:
[2009/04/23 18:12:35] @ Quit: kingitchy:
[2009/04/23 18:12:53] <Volcane> http://pastie.org/456410 works every time
[2009/04/23 18:16:48] @ Quit: flakrat: "Leaving"
[2009/04/23 18:18:03] @ fbe_ joined channel #puppet
[2009/04/23 18:18:15] <rgsteele||work> Hm, maybe it does work now that I've set ensure => present. My eyes are starting to get bleary, I've been in front of a screen for too long today.
[2009/04/23 18:18:23] <rgsteele||work> I need a break before my brain turns in to applesauce.
[2009/04/23 18:18:30] <Volcane> I'm pretty sure thats it
[2009/04/23 18:21:40] @ gangofnuns joined channel #puppet
[2009/04/23 18:25:05] @ Quit: lak:
[2009/04/23 18:27:56] @ mecca_ left channel #puppet ()
[2009/04/23 18:30:03] <rgsteele||work> Volcane: Think you might be right.
[2009/04/23 18:30:13] <rgsteele||work> Anyways, now I really am going to rest my brain :)
[2009/04/23 18:31:48] @ Quit: jhulten: "leaving"
[2009/04/23 18:32:33] @ jhulten joined channel #puppet
[2009/04/23 18:33:12] @ randybias is now known as randybias|away
[2009/04/23 18:33:27] @ Quit: fbe: Read error: 110 (Connection timed out)
[2009/04/23 18:39:14] @ randybias|away is now known as randybias
[2009/04/23 18:45:36] @ bobbyz joined channel #puppet
[2009/04/23 18:51:04] @ Quit: ckm: "Leaving"
[2009/04/23 18:52:46] @ Quit: m1n3s6: "Leaving"
[2009/04/23 18:57:20] @ lak joined channel #puppet
[2009/04/23 18:58:44] @ Quit: madrescher: "Leaving."
[2009/04/23 19:01:15] @ Quit: Djelibeybi: "Leaving"
[2009/04/23 19:06:08] @ mfoster joined channel #puppet
[2009/04/23 19:06:20] @ Quit: keithlard:
[2009/04/23 19:08:45] @ randybias is now known as randybias|away
[2009/04/23 19:12:26] @ keithlard joined channel #puppet
[2009/04/23 19:12:27] @ Quit: tuf: Read error: 104 (Connection reset by peer)
[2009/04/23 19:13:28] @ Quit: markl_: "Lost terminal"
[2009/04/23 19:14:01] @ Quit: rdaugherty: "Leaving."
[2009/04/23 19:14:03] @ rdaugherty1 joined channel #puppet
[2009/04/23 19:19:45] @ Quit: ghenry: Remote closed the connection
[2009/04/23 19:21:17] @ Quit: edwardam|mtg: Remote closed the connection
[2009/04/23 19:23:44] @ Quit: gangofnuns: "http://www.mibbit.com ajax IRC Client"
[2009/04/23 19:28:10] @ edwardam joined channel #puppet
[2009/04/23 19:28:12] @ Quit: plathrop: Read error: 113 (No route to host)
[2009/04/23 19:28:28] @ Quit: cwebber:
[2009/04/23 19:29:24] @ johnw joined channel #puppet
[2009/04/23 19:32:39] <johnw> i need a resource to both require and notify another resource, is that possible?
[2009/04/23 19:32:47] @ mikepea joined channel #puppet
[2009/04/23 19:32:47] <johnw> if I try the obvious, I get an error about a circular reference
[2009/04/23 19:33:18] @ bob2 joined channel #puppet
[2009/04/23 19:33:35] <bob2> wtf (//Node[basenode]/security/Package[chkrootkit]/ensure) ensure changed '0.48-8' to '#<YAML::DomainType:0x7fbb2fd43ef0>'
[2009/04/23 19:33:53] @ nakano_ is now known as nakano
[2009/04/23 19:34:11] @ rdaugherty joined channel #puppet
[2009/04/23 19:34:11] @ Quit: rdaugherty1: "Leaving."
[2009/04/23 19:34:32] @ Quit: bgupta: Read error: 104 (Connection reset by peer)
[2009/04/23 19:35:41] @ bgupta joined channel #puppet
[2009/04/23 19:43:21] @ Quit: nDuff: Read error: 110 (Connection timed out)
[2009/04/23 19:44:08] @ Quit: voixd: Read error: 60 (Operation timed out)
[2009/04/23 19:44:43] @ kingitchy joined channel #puppet
[2009/04/23 19:45:39] @ nDuff joined channel #puppet
[2009/04/23 19:46:19] @ Quit: edwardam: Remote closed the connection
[2009/04/23 19:52:23] <wakko666> with package providers, when specifying defaultfor, does the most specific case win? i.e. yum is defaultfor :operatingsystem => :redhat, but up2date is defaultfor :operatingsystem => redhat, :lsbdistrelease => "4", so on CentOS 4, puppet will default to up2date despite yum being the preferred package provider on CentOS 4.
[2009/04/23 19:52:54] @ dsd_ left channel #puppet ()
[2009/04/23 19:55:28] @ gangofnuns joined channel #puppet
[2009/04/23 19:56:12] @ Quit: alfism: "Connection reset by beer"
[2009/04/23 19:58:28] <lak> wakko666: essentially, yes - the case that matches and has the most qualifications wins
[2009/04/23 19:59:52] @ voixd joined channel #puppet
[2009/04/23 20:00:54] @ Quit: gangofnuns: "http://www.mibbit.com ajax IRC Client"
[2009/04/23 20:01:39] <wakko666> lak: i thought so. i guess that behavior may need to be patched to cover the CentOS case.
[2009/04/23 20:02:31] @ gangofnuns joined channel #puppet
[2009/04/23 20:04:14] @ randybias|away is now known as randybias
[2009/04/23 20:04:50] @ Quit: lak:
[2009/04/23 20:04:57] @ Quit: gangofnuns: Client Quit
[2009/04/23 20:07:00] @ Quit: ezmob: "Bye!"
[2009/04/23 20:08:36] @ ryanduff|away is now known as ryanduff
[2009/04/23 20:09:58] @ nakano is now known as nakano_
[2009/04/23 20:12:20] @ ryanduff is now known as ryanduff|away
[2009/04/23 20:12:29] @ ryanduff|away is now known as ryanduff
[2009/04/23 20:13:04] @ Quit: cw_: "Leaving..."
[2009/04/23 20:13:53] @ cw_ joined channel #puppet
[2009/04/23 20:14:02] @ Quit: cw_: Client Quit
[2009/04/23 20:18:45] @ Quit: keithlard:
[2009/04/23 20:22:25] @ Quit: fujin:
[2009/04/23 20:28:40] @ Quit: voixd: Read error: 110 (Connection timed out)
[2009/04/23 20:44:44] @ Quit: philip_: Read error: 113 (No route to host)
[2009/04/23 20:45:51] @ nakano_ is now known as nakano
[2009/04/23 20:58:43] @ Quit: mikepea:
[2009/04/23 20:59:36] <andrewcshafer> bob2: what version did you get that message on? can you reproduce it?
[2009/04/23 21:02:06] <bob2> whatever's in lenny
[2009/04/23 21:02:12] @ buckethed joined channel #puppet
[2009/04/23 21:02:20] <buckethed> hi
[2009/04/23 21:02:28] <bob2> 0.24.5-3
[2009/04/23 21:02:45] @ randybias is now known as randybias|away
[2009/04/23 21:03:05] @ Quit: barn: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:05] @ Quit: Berge: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:06] @ Quit: madduck: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:06] @ Quit: tim|imac: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:07] @ Quit: _nono_: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:07] @ Quit: FiXion: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:07] @ Quit: johnf1911: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:08] @ Quit: duritong: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:03:09] @ Quit: avleen_: pratchett.freenode.net irc.freenode.net
[2009/04/23 21:04:12] @ tim|imac joined channel #puppet
[2009/04/23 21:04:13] @ Berge joined channel #puppet
[2009/04/23 21:04:13] @ avleen_ joined channel #puppet
[2009/04/23 21:04:13] @ barn joined channel #puppet
[2009/04/23 21:04:13] @ FiXion joined channel #puppet
[2009/04/23 21:04:13] @ duritong joined channel #puppet
[2009/04/23 21:04:13] @ _nono_ joined channel #puppet
[2009/04/23 21:04:13] @ johnf1911 joined channel #puppet
[2009/04/23 21:04:13] @ madduck joined channel #puppet
[2009/04/23 21:04:35] <buckethed> i am wondering if puppet can be used to install some applications from a local cd that is run right after windows is installed? like computer provisioning?
[2009/04/23 21:06:19] @ claymation_ joined channel #puppet
[2009/04/23 21:06:19] @ Quit: claymation: Read error: 104 (Connection reset by peer)
[2009/04/23 21:18:16] @ fujin joined channel #puppet
[2009/04/23 21:21:39] @ devicenull_ joined channel #puppet
[2009/04/23 21:24:32] <buckethed> oh ok, i just read the faqs. puppet does not yet run on windows :(
[2009/04/23 21:26:13] @ Quit: devicenull: Read error: 60 (Operation timed out)
[2009/04/23 21:27:56] @ markl_ joined channel #puppet
[2009/04/23 21:28:03] @ Quit: WALoeIII: Read error: 60 (Operation timed out)
[2009/04/23 21:28:05] @ ke4qqq left channel #puppet ()
[2009/04/23 21:31:49] @ edwardam joined channel #puppet
[2009/04/23 21:39:04] @ edwardam_ joined channel #puppet
[2009/04/23 21:44:14] @ Quit: gaveen: Read error: 110 (Connection timed out)
[2009/04/23 21:45:07] @ gaveen joined channel #puppet
[2009/04/23 21:49:47] @ randybias|away is now known as randybias
[2009/04/23 21:52:47] @ Quit: edwardam: Nick collision from services.
[2009/04/23 21:52:59] @ edwardam_ is now known as edwardam
[2009/04/23 22:00:16] @ Quit: andrewcshafer:
[2009/04/23 22:02:09] @ pdt joined channel #puppet
[2009/04/23 22:03:22] @ Djelibeybi joined channel #puppet
[2009/04/23 22:03:29] @ jmarki joined channel #puppet
[2009/04/23 22:07:31] @ Quit: rdaugherty: "Leaving."
[2009/04/23 22:08:15] @ maxagaz joined channel #puppet
[2009/04/23 22:15:38] @ Quit: buckethed:
[2009/04/23 22:21:10] @ andrewcshafer joined channel #puppet
[2009/04/23 22:27:12] @ Quit: claymation_:
[2009/04/23 22:28:43] @ Quit: DavidS: Read error: 104 (Connection reset by peer)
[2009/04/23 22:29:03] @ DavidS joined channel #puppet
[2009/04/23 22:29:03] @ Quit: BMDan: Read error: 104 (Connection reset by peer)
[2009/04/23 22:30:04] @ BMDan joined channel #puppet
[2009/04/23 22:42:17] @ randybias is now known as randybias|away
[2009/04/23 22:43:41] @ rdaugherty joined channel #puppet
[2009/04/23 22:44:56] @ Quit: rgsteele||work: Read error: 113 (No route to host)
[2009/04/23 22:46:14] @ Quit: rdaugherty: Client Quit
[2009/04/23 22:46:39] @ rdaugherty1 joined channel #puppet
[2009/04/23 22:47:05] @ atlan_ joined channel #puppet
[2009/04/23 22:47:08] @ Quit: rdaugherty1: Client Quit
[2009/04/23 22:47:15] @ collier_s joined channel #puppet
[2009/04/23 22:52:29] @ Quit: edwardam: Read error: 104 (Connection reset by peer)
[2009/04/23 22:52:29] * monachus is in limbo.
[2009/04/23 23:02:55] @ randybias|away is now known as randybias
[2009/04/23 23:02:56] @ Quit: chip__: Read error: 110 (Connection timed out)
[2009/04/23 23:18:55] @ randybias is now known as randybias|away
[2009/04/23 23:19:05] <johnw> ensure => salvation
[2009/04/23 23:20:00] * chu prays to the complete balanced nutrition shake
[2009/04/23 23:28:31] @ Quit: randybias|away: Read error: 60 (Operation timed out)
[2009/04/23 23:29:02] @ Quit: collier_s: "Leaving"
[2009/04/23 23:29:47] @ Quit: pdt:
[2009/04/23 23:31:04] @ Quit: d3vilb0x:
[2009/04/23 23:37:00] @ cwebber joined channel #puppet
[2009/04/23 23:37:14] @ Quit: bobbyz: Read error: 113 (No route to host)
[2009/04/23 23:41:27] @ alfism joined channel #puppet

Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!