Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-15

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 joehoyle joined #salt
00:02 thayne joined #salt
00:06 krow joined #salt
00:07 oz_akan_ joined #salt
00:13 manfred is there a state for making sure a partition is a specific filesystem?
00:18 krow joined #salt
00:20 oz_akan_ joined #salt
00:22 Kraln joined #salt
00:28 jaimed joined #salt
00:29 krow joined #salt
00:30 jimallman joined #salt
00:31 saurabhs joined #salt
00:36 nlb anyone have inode problem from salt jobs cache?
00:37 psyl0n joined #salt
00:40 joehoyle joined #salt
00:43 markizano manfred: isn't that a pxe boot option ?
00:44 manfred sure, but what if you are using cloud servers and add external block storage, or add a new iscsi target
00:46 joehoyle joined #salt
00:47 goncalo nlb: I don't, but I am wondering if you use a dedicated filesystem for the jobs cache directory?
00:47 krow joined #salt
00:47 saurabhs left #salt
00:48 xmltok joined #salt
00:50 redondos joined #salt
00:50 redondos joined #salt
00:52 markizano manfred: how would the state work? if the partition format isn't as desired, format the drive to the specified filesystem type ?
00:52 manfred yes
00:52 markizano o.o
00:52 markizano hrmm
00:52 manfred i already have one almost written up, using lsblk to get the filesystem
00:54 quickdry21 joined #salt
00:54 faef Anyone thought how about modifying loader.py to work with classes/instances instead functions
00:58 krow joined #salt
00:59 markizano manfred: hrmm.. we're close with this one: http://docs.saltstack.com/ref/modules/all/salt.modules.extfs.html
00:59 manfred i think that will do it
01:00 manfred oh, but not a state.  I am just going to patch mine into the blockdev state, using the parted module
01:00 vbabiy_ joined #salt
01:01 psyl0n joined #salt
01:01 krow1 joined #salt
01:02 hunter joined #salt
01:05 dleedyna joined #salt
01:19 krow joined #salt
01:23 sroegner joined #salt
01:28 gnugnu4_ joined #salt
01:29 hunter joined #salt
01:31 fllr joined #salt
01:31 xmltok joined #salt
01:35 fllr joined #salt
01:40 vbabiy_ joined #salt
01:43 schimmy joined #salt
01:44 kballou joined #salt
01:44 vejdmn joined #salt
01:51 Ryan_Lane1 joined #salt
01:53 harkx joined #salt
01:54 TJ1980 joined #salt
01:55 krow joined #salt
02:05 schimmy joined #salt
02:06 patrek__ joined #salt
02:10 MTecknology Am I blind or can I not use a gid for setting a group name on file.directory?
02:10 gnugnu4 joined #salt
02:11 vejdmn joined #salt
02:13 gnugnu5 joined #salt
02:14 KyleG joined #salt
02:17 krow joined #salt
02:19 manfred markizano: done https://github.com/saltstack/salt/pull/10465
02:25 scooby2 joined #salt
02:27 gnugnu5_ joined #salt
02:29 ckao joined #salt
02:41 krow joined #salt
02:45 yomilk joined #salt
02:47 ilbot3 joined #salt
02:47 Topic for #salt is now Welcome to #salt | Thanks to everyone who made SaltConf 2014 amazing! | 0.17.5 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
02:47 pdayton joined #salt
02:48 hunter joined #salt
02:59 mgw1 joined #salt
03:07 TJ1980 joined #salt
03:14 schimmy joined #salt
03:16 yomilk joined #salt
03:19 User486 joined #salt
03:19 ajw0100 joined #salt
03:19 test joined #salt
03:22 rostam joined #salt
03:27 cpenner461 joined #salt
03:28 thayne joined #salt
03:30 istram left #salt
03:32 MTecknology http://i.imgur.com/PbAQYaV.jpg <-- soooo many states!
03:37 fllr joined #salt
03:41 faldridge joined #salt
03:41 fllr joined #salt
03:45 l0x3py joined #salt
03:47 brianhicks joined #salt
03:49 joehoyle joined #salt
03:52 Ryan_Lane1 joined #salt
04:01 fllr joined #salt
04:01 markizano MTecknology:  - holy shite xD
04:05 oz_akan_ joined #salt
04:11 BenCoinanke joined #salt
04:13 jaimed joined #salt
04:14 oz_akan_ joined #salt
04:22 MTecknology markizano: and yet... running state.highstate on that box is nothing but ~2min; on some boxes with only 80, they take 3+hr (or never finish)
04:22 ajw0100 joined #salt
04:24 markizano o.o
04:28 ajw0100 joined #salt
04:28 MTecknology markizano: 100% exactly the same sls files being applied, just that this box has a crap ton more facilities it serves. The difference... this one is local; the others that take 3+hr are remote and something about name resolutions is a bitch
04:29 MTecknology libnss-ldapd & libpam-ldapd <-- giant thorn (i think)
04:31 markizano isn't there a cache dns pkg you could install ...   I know I saw something somewhere...
04:31 davet joined #salt
04:36 alice|wl k ... think I wrote a working ccollect state ... with sshconfig for targets from pillar
04:37 alice|wl was a bit exhausting but starts to get usefull
04:37 djaime joined #salt
04:38 yomilk joined #salt
04:51 sgviking joined #salt
05:03 ajw0100 joined #salt
05:05 jimallman joined #salt
05:12 nextdoorwarren joined #salt
05:14 Gordonz joined #salt
05:19 rojem joined #salt
05:37 krow joined #salt
05:42 krow1 joined #salt
05:56 anuvrat joined #salt
05:59 higgs001 joined #salt
06:05 Ryan_Lane1 joined #salt
06:09 jalbretsen joined #salt
06:26 MK_FG joined #salt
06:41 krow joined #salt
06:46 pdayton joined #salt
06:46 sroegner joined #salt
06:55 rallytime joined #salt
07:00 jidar [A
07:00 jidar [A
07:01 jidar woops!
07:02 L0j1k ROGER
07:05 gildegoma joined #salt
07:08 jtang1 joined #salt
07:08 fllr joined #salt
07:10 thayne joined #salt
07:20 krow1 joined #salt
07:32 thayne joined #salt
07:41 joehillen joined #salt
07:55 redondos joined #salt
07:55 redondos joined #salt
08:03 fllr joined #salt
08:05 _fllr_ joined #salt
08:09 mpoole joined #salt
08:27 AlcariTheMad joined #salt
08:35 sroegner joined #salt
08:40 krow joined #salt
08:43 harkx joined #salt
09:00 favadi joined #salt
09:03 fllr joined #salt
09:04 faldridge joined #salt
09:05 krow joined #salt
09:26 jbub joined #salt
09:41 johtso joined #salt
09:41 favadi joined #salt
10:03 fllr joined #salt
10:05 vipul joined #salt
10:16 ajw0100 joined #salt
10:23 pdayton joined #salt
10:23 sroegner joined #salt
10:30 nn0101 joined #salt
10:32 faldridge joined #salt
10:33 krow joined #salt
10:37 harobed joined #salt
10:40 unicoletti_ joined #salt
10:53 slav0nic joined #salt
10:53 slav0nic joined #salt
10:53 slav0nic hi, why file.managed accept pgbackup_rotated.sh, but with pg_backup_rotated.sh (2 underscope) i got error
11:03 fllr joined #salt
11:05 _fllr_ joined #salt
11:16 joehoyle joined #salt
11:20 alunduil joined #salt
11:23 johtso joined #salt
11:36 favadi joined #salt
11:49 bhosmer_ joined #salt
11:51 redondos joined #salt
12:01 faldridge joined #salt
12:03 fllr joined #salt
12:04 rawtaz slav0nic: it might be relevant to know *what* error you get
12:12 sroegner joined #salt
12:12 pdayton joined #salt
12:14 vbabiy_ joined #salt
12:14 redondos joined #salt
12:24 joehoyle joined #salt
12:27 TJ1980 joined #salt
12:29 vbabiy__ joined #salt
12:37 vbabiy_ joined #salt
12:42 linjan__ joined #salt
12:58 unicoletti__ joined #salt
13:02 elfixit joined #salt
13:02 faldridge joined #salt
13:03 fllr joined #salt
13:06 nn0101 joined #salt
13:10 sroegner joined #salt
13:10 taion809 joined #salt
13:15 redondos joined #salt
13:32 thayne joined #salt
13:32 TJ1980 joined #salt
13:34 zzzirk joined #salt
13:55 fllr joined #salt
13:57 fllr joined #salt
14:01 pdayton joined #salt
14:03 fllr joined #salt
14:11 diegows joined #salt
14:15 elfixit joined #salt
14:16 redondos joined #salt
14:20 scott_w_ joined #salt
14:29 Simon_ joined #salt
14:31 faldridge joined #salt
14:36 Mua joined #salt
14:40 sieve joined #salt
14:40 sieve Hello,
14:41 sieve I have 6 or seven servers that I would like to manage with salt stack. The first task is to set the network config for each server from DHCP to static.
14:41 sieve however I am struggling to understand the configuration management hierarchy
14:42 sieve in my /srv/salt should I have a file per hostname?
14:48 unicoletti_ joined #salt
14:48 nkuttler sieve: sounds like a pillar thing
14:49 sieve nkuttler: Im new to salt.
14:50 sieve I want to configure static addresses for my interfaces but I cant see how to do this on a per host basis.
14:52 bhosmer joined #salt
15:03 fllr joined #salt
15:03 scott_w_ joined #salt
15:15 sieve https://gist.github.com/anonymous/5a09686757bd1e76d964
15:15 sieve I really cant see how to do this per host configuration management
15:18 redondos_ joined #salt
15:20 whyzgeek joined #salt
15:22 rostam joined #salt
15:27 shano joined #salt
15:28 shano joined #salt
15:29 danrivcap joined #salt
15:29 danrivcap Hi, anybody knows any opensource project made with salt?
15:30 danrivcap made no, managed with salt
15:34 patrek joined #salt
15:37 terminalmage joined #salt
15:40 bhosmer joined #salt
15:48 yomilk joined #salt
15:59 bhosmer joined #salt
16:02 backjlack joined #salt
16:05 micah_chatt joined #salt
16:12 BenCoinanke_g joined #salt
16:12 nyx joined #salt
16:14 MrTango joined #salt
16:15 Guest71405 I'm trying to use salt-cloud to build a salt master at Rackspace and struggling because (I think) I need to setup a SSH keypair at Rackspace but I don't know how to do that using salt-cloud exactly.
16:18 Guest71405 I was able to build a master with my setup (with sshpass) however I'd like SSH key-based auth
16:18 elfixit joined #salt
16:19 redondos joined #salt
16:23 joehoyle joined #salt
16:28 pdayton joined #salt
16:29 bhosmer joined #salt
16:30 thayne joined #salt
16:32 diegows joined #salt
16:33 unicoletti_ joined #salt
16:37 sieve [root@ipa ks]# salt '*' network.active_tcp
16:37 sieve ipa.cumberbatch.com:
16:37 sieve "network.active_tcp" is not available.
16:37 sieve This is very much confusing me
16:49 jkleckner joined #salt
16:54 jkleckner joined #salt
16:55 scott_w_ joined #salt
16:58 AdamSewell joined #salt
17:00 yomilk joined #salt
17:03 jeremyBass joined #salt
17:19 ccase joined #salt
17:21 gnugnu5 joined #salt
17:23 jimallman joined #salt
17:27 Hefeweizen joined #salt
17:28 giantlock joined #salt
17:32 giantlock joined #salt
17:33 felixhummel joined #salt
17:38 _david_a joined #salt
17:48 thayne joined #salt
17:56 arnoldB hm. someone broke debian_ip
17:57 arnoldB (2014.1.0rc3)
17:58 arnoldB https://github.com/saltstack/salt/blob/develop/salt/templates/debian_ip/debian_eth.jinja is this best practice jinja templating in salt?
17:58 austin987 joined #salt
18:11 jeremyBass1 joined #salt
18:11 Gareth arnoldB: oh?
18:12 arnoldB Gareth: I'm setting a bridge interface with network.managed (state in sls). correct file will be written and then overwritten with some lines missing. I'm preparing a patch
18:13 jalbretsen joined #salt
18:13 Gareth ah cool.  I wrote most of the code for that module...would be curious to see what I missed :)
18:15 arnoldB I'm also adding some code to make debian_ip.build_interfaces for userfriendly
18:15 anuvrat joined #salt
18:16 arnoldB I'd also like to refactor the template debian_eth.jinja if it's causing problems (as I see it doesn't at the moment)
18:17 Gareth what problems is it causing?
18:17 arnoldB "(as I see it doesn't at the moment)"
18:17 Gareth ahh
18:18 bhosmer joined #salt
18:18 Hefeweizen joined #salt
18:20 jeremyBass joined #salt
18:21 redondos joined #salt
18:21 xfactor973 joined #salt
18:21 xfactor973 in salt version 0.17.5-1raring1 i'm getting an error when using the hg.pull command
18:21 xfactor973 salt: error: no such option: -u
18:25 jeremyBass joined #salt
18:28 jeremyBass left #salt
18:37 jeremyBass joined #salt
18:37 arnoldB Gareth: It would like to replace the if's in https://github.com/saltstack/salt/blob/develop/salt/templates/debian_ip/debian_eth.jinja by a macro and a loop containing the different names of the interface variables. what do you think?
18:37 arnoldB s/a loop/loops/
18:37 davet joined #salt
18:38 arnoldB this would make the template easier to read and reduces unnecessary newlines
18:38 Haimlec joined #salt
18:38 vegardx joined #salt
18:38 jeremyBass1 joined #salt
18:39 arnoldB concerning the newlines: https://np.adm.sx/view/8f691e75
18:39 vegardx I'm having the most basic configuration (install a package) and it fails with the non-infomrative error "Data failed to compile:". Looking in the logs I see an error about a possible reply attack. This is on a host that acts as both master and minion.
18:39 vegardx Running the latest packages from wheezy-backports.
18:43 troyready joined #salt
18:49 vegardx Turns out I had multiple minions running in the background.
18:50 yomilk joined #salt
18:55 kedo39 joined #salt
18:56 nextdoorwarren joined #salt
18:56 xfactor973 left #salt
19:00 mgw1 joined #salt
19:02 TJ1980 joined #salt
19:02 TJ1980 left #salt
19:03 luminous hi! can salt's git module be used to create a new branch?
19:04 arnoldB Gareth: this changes enhanced and broke the bridge config: https://github.com/saltstack/salt/commit/b200697ea69e70d198c004d15fdd972fa44f5a90 :)
19:05 arnoldB these bridge keys need a bridge_ prefix
19:06 arnoldB will be fixed
19:08 arnoldB we really need tests..
19:10 Gareth arnoldB: ahhh. not my change.
19:11 arnoldB Gareth: yep
19:11 arnoldB Gareth: the module is cool. someone other broke it :D
19:18 vejdmn joined #salt
19:20 arnoldB *what-was-easy*
19:20 arnoldB s/what/that/
19:21 redondos joined #salt
19:24 arnoldB Gareth: how to I get up, down, pre-up, etc. commands written the interfaces file?
19:24 MTecknology luminous: I don't think so
19:24 arnoldB can't figure out what to set as arg
19:25 luminous MTecknology: it looks like yes, actually.. through the 'opts' parameter
19:26 luminous MTecknology: https://salt.readthedocs.org/en/latest/ref/modules/all/salt.modules.git.html#salt.modules.git.checkout << second cli example here
19:26 luminous I'm trying to test this now
19:26 MTecknology luminous: that creates a new branch?
19:27 joehoyle joined #salt
19:28 luminous MTecknology: no, but it tells me I can probably do the following, translated: git checkout -b new base
19:28 luminous so opts: '-b new base' should do
19:35 MTecknology and for all that - funny baby - http://www.findsteps.com/videos/gangnam-style-baby-version
19:41 johtso joined #salt
19:47 Hefeweizen joined #salt
19:52 jimallman joined #salt
19:55 pmcg joined #salt
20:06 bhosmer joined #salt
20:11 unicoletti_ joined #salt
20:16 mgw1 joined #salt
20:22 redondos joined #salt
20:23 unicoletti_ left #salt
20:27 bhosmer joined #salt
20:27 mido joined #salt
20:29 mido left #salt
20:31 faldridge joined #salt
20:32 n8n joined #salt
20:34 MindDrive_ joined #salt
20:34 mgw1 joined #salt
20:35 micko joined #salt
20:35 troyready joined #salt
20:36 johtso joined #salt
20:36 bhosmer joined #salt
20:37 scott_w_ joined #salt
20:38 bhosmer joined #salt
20:40 beach joined #salt
20:47 troyready joined #salt
20:54 fragamus joined #salt
21:01 diegows joined #salt
21:03 redondos_ joined #salt
21:10 davet joined #salt
21:10 xmltok joined #salt
21:12 jidar is there any reason I'd have trouble loading pillars from a masterless install?
21:12 forrest joined #salt
21:24 AdamSewell joined #salt
21:31 mgw1 joined #salt
21:40 ckao joined #salt
21:42 taion809 joined #salt
21:45 xmltok joined #salt
21:48 zzzirk joined #salt
21:49 scott_w_ joined #salt
21:56 hunter_ joined #salt
21:58 jkleckner joined #salt
21:59 rogst joined #salt
22:01 joehoyle joined #salt
22:01 scott_w_ joined #salt
22:03 scott_w__ joined #salt
22:14 n8n joined #salt
22:22 ndrei joined #salt
22:25 bhosmer joined #salt
22:29 jkleckner joined #salt
22:38 vu joined #salt
22:38 jidar using the git repo https://github.com/saltstack-formulas/apache-formula I've cloned it into /srv/pillar/apache, and in my top.sls file I set base '*' - webserver, then my webserver is copy/aste from the git repo example. I'm getting this error '[CRITICAL] Rendering SLS "base:webserver" failed: Jinja variable 'id' is undefined; line 23' which is weird, because two lines above that line, there is another {{ id }} that I assume renders fine?
22:38 ndrei joined #salt
22:39 scoates jidar: in my experience, jinja lies about line numbers.
22:39 mgw1 joined #salt
22:39 jidar hmm, ok
22:40 jidar > example.com: # must be unique; used as an ID declaration in Salt; also passed to the template context as {{ id }}
22:41 jidar if one of the references that should be generated by the sls file itself isn't rendering properly, doesn't that speak of another larger issue?
22:44 mgw1 joined #salt
22:46 arnoldB apache-formula is horrible to use. I'll start to write a new one from scratch within the next days
22:47 jidar arnoldB: yea, I hear you but I'm just trying to get pillars to work on a masterless box... so it's just proof of concept not anything else
22:47 jidar arnoldB: would you suggest something else I can checkout and put in a pillar?
22:47 arnoldB jidar: are you new to salt?
22:47 jidar I am
22:47 arnoldB jidar: salt-call saltutil.refresh_pillar
22:48 arnoldB (just guessing)
22:48 jidar [WARNING ] Master hostname: salt not found. Retrying in 30 seconds
22:48 arnoldB append --local
22:48 * jidar boggles
22:48 jidar local: None
22:48 jidar not sure what we're doing on this
22:49 arnoldB I remember having problems with pillar on masterless test systems. maybe check salt-call --local pillar.get your:pillar:vars
22:50 jidar ah, yea I've been meaning to get into that part and understand how the calls work locally
22:50 jidar salt-call --local pillar
22:50 jidar Function pillar is not available
22:51 arnoldB salt-call --local pillar.get your:pillar:vars
22:51 jidar anything after pillar.get throws an exception
22:51 jidar well hold on
22:52 jidar that may be my failt
22:52 arnoldB ;)
22:53 n8n joined #salt
22:56 taion809 joined #salt
23:00 joehoyle joined #salt
23:07 jidar I don't see anything from the pillars poping into the output other than some of the master: settings.. now I'm just trying to get the epel example to work found in the formula docs : http://docs.saltstack.com/topics/conventions/formulas.html and what I'm getting is the following: Specified SLS epel in environment base is not available on the salt master
23:07 jidar salt-call --local pillar.get master:id shows the hostname btw, so at least that works
23:12 arnoldB jidar: nopaste your state files
23:12 arnoldB (at least top.sls)
23:12 mgw1 joined #salt
23:18 taion809_ joined #salt
23:18 jidar http://pastebin.com/7Rj9xP4S
23:18 jidar I'm not sure I need the /srv/pillar/top.sls but I just put it in
23:19 jidar http://pastebin.com/EMVkJhNH this one shows the tree from /srv
23:21 warmwaffles joined #salt
23:21 warmwaffles I see some people use a `salt` directory and a `pillar` directory in their state trees. What is the difference between a pillar and straight up salt configs?
23:22 schimmy joined #salt
23:22 arnoldB warmwaffles: salt=states pillar=pillar
23:23 warmwaffles are pillars in essence a collection of states?
23:23 arnoldB warmwaffles: pillars contain user defined data. check the documentation
23:23 jidar more like templates to states?
23:24 kiorky uhm am i wrong or there is no cleanup of minion side cached jobs (with minion: cache_jobs: True) (no equivalent of the master maintainance routine)
23:24 warmwaffles ah, I am reading the docs right now and playing with salt
23:24 kiorky basepi: s0undt3ch ^
23:25 kiorky basepi: s0undt3ch i m thinking if we would have to make the routine also iterates over minions to purge their jobs but that seems also a bit bloat
23:25 arnoldB jidar: pillar_roots comes into the master/ minion config file (at least I never saw it in a top.sls file)
23:25 warmwaffles it's just a lot to take in =/
23:25 kiorky basepi: scoates bthe other solution if also just in my case to add a stupid find -mtime -delete in cron on my side ...
23:26 arnoldB jidar: vim-enhanced (state) comes into core.sls
23:27 arnoldB jidar: pillar/apache and pillar/epel should be moved to /srv/salt
23:29 jidar let me try this
23:30 arnoldB jidar: I can't speak about the epel formular, but for example https://github.com/bechtoldt/tools-formula should work fine
23:30 joehoyle joined #salt
23:35 arnoldB jidar: https://np.adm.sx/view/9cf1b7c6 https://np.adm.sx/view/b7ac6be5 https://np.adm.sx/view/ad405902 https://np.adm.sx/view/c8ea8ef4
23:35 n8n joined #salt
23:42 joehoyle joined #salt

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary