Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-09

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

All times shown according to UTC.

Time Nick Message
00:03 oz_akan_ joined #salt
00:08 fllr joined #salt
00:08 Whissi joined #salt
00:08 fllr How can I check a file exists in my salt fileserver?
00:10 glen__ yeah I guess it would be using whatever vagrant set up. But I'm just doing things from online examples and the docs. I just copied this script here from salt docs http://docs.saltstack.com/ref/states/all/salt.states.rbenv.html which you can see from my pastebin example.
00:13 forresta glen__, right but that isn't using vagrant which is the difference, it seems like to me vagrant would stand up the instance, then have the repos in there, that's why I suggested to add the - refresh: True line
00:13 forresta to see if the repo it is pulling that stuff from isn't getting populated for some reason, you also can try running it again with -l debug to see what the additional output looks like.
00:19 glen__ added the refresh: true line still getting the error [ERROR   ] The following packages failed to install/update: gmake, git. The following packages were already installed: curl, openssl, bash.
00:22 forresta what happens when you run it through with -l debug?
00:24 kalloc joined #salt
00:31 glen__ DEBUG ssh: stderr: [ERROR   ] The following packages failed to install/update: gmake, git. The following packages were already installed: curl, openssl, bash.   INFO interface: info: [ERROR   ] The following packages failed to install/update: gmake, git. The following packages were already installed: curl, openssl, bash.
00:33 forresta glen__, I'm not sure then, I don't see why it wouldn't be installing properly. What release of Salt are you using?
00:37 jimallman joined #salt
00:41 Katafalkas joined #salt
00:49 arnoldB python guru around? error: https://np.adm.sx/view/4c3fe02c srccode: https://github.com/saltstack/salt/blob/develop/salt/modules/defaults.py . I'm using the example from the doc in the source code file
00:50 arnoldB I added a line after line 120 in my local source code file
00:51 arnoldB that module doesn't seem to work in an SLS file
00:51 arnoldB s/an/a/
00:52 arnoldB TypeError: 'NoneType' object does not support item assignment
01:03 LLKCKfan joined #salt
01:03 ndrei joined #salt
01:03 oz_akan_ joined #salt
01:04 glen__ forresta, it comes with vagrant, it just uses the salt install script online. I did mange to get them installing by separating each package to be installed. It turned out to be gmake which you mentioned before (I didnt see that so I only tried git, just a stupid mistake on my part) thanks a lot for your help.
01:07 forresta glen__, oh cool, so was gmake just not installing properly or what was up with it?
01:10 glen__ I ssh'd into it then attempted to apt-get install it but it wasnt able to locate the package. Removing that fixed everything,
01:10 forresta ahh gotcha
01:11 thayne joined #salt
01:19 cedwards I've recently added data to pillar but it's not showing up in 'pillar.get foo'. what am I missing?
01:22 nebuchad` joined #salt
01:22 dvogt_ joined #salt
01:23 justBob_ joined #salt
01:23 gwmngilfen joined #salt
01:24 arnoldB cedwards: salt host salt.refersh_pillar
01:24 kalloc joined #salt
01:24 dirjaway_ joined #salt
01:24 Damoun_ joined #salt
01:24 arnoldB issued a ticket for my problem (https://github.com/saltstack/salt/issues/10300)
01:25 arnoldB cedwards: sorry; saltutil.refresh_pillar
01:26 n8n_ joined #salt
01:31 ajw0100 joined #salt
01:31 cedwards arnoldB: thanks
01:31 ndrei joined #salt
01:36 terminalmage joined #salt
01:36 Troic_ joined #salt
01:36 Troic_ joined #salt
01:37 rhand joined #salt
01:39 davet joined #salt
01:43 oz_akan_ joined #salt
01:45 pentabular joined #salt
01:52 bgw joined #salt
01:59 ndrei joined #salt
02:00 dlightsey joined #salt
02:02 bgw left #salt
02:06 astol joined #salt
02:15 dstanek joined #salt
02:16 cachedout joined #salt
02:23 fxhp joined #salt
02:23 redbeard2 joined #salt
02:24 redbeard2 left #salt
02:24 kalloc joined #salt
02:27 smkelly joined #salt
02:30 diegows joined #salt
02:37 smkelly_ joined #salt
02:45 cedwards I just got notification that Salt is moving to the community repo in Arch.
02:57 manfred at some point
02:57 manfred i am waiting for yalls next release and then i was going to reach out to you cedwards
03:10 cedwards 2014.1 release is supposed to be any day now
03:10 halfss joined #salt
03:15 cachedout joined #salt
03:17 manfred yar that is what I hear :)
03:23 rostam joined #salt
03:24 kalloc joined #salt
03:27 dstanek joined #salt
03:29 rojem joined #salt
03:45 oz_akan_ joined #salt
03:45 LLKCKfan joined #salt
03:51 elfixit1 joined #salt
03:56 anitak joined #salt
03:57 anitak1 joined #salt
04:01 halfss joined #salt
04:01 cachedout joined #salt
04:08 astol joined #salt
04:13 ajw0100 joined #salt
04:15 ajw0100 joined #salt
04:20 cachedout joined #salt
04:24 kalloc joined #salt
04:25 jeddi joined #salt
04:32 nn0101 joined #salt
04:45 oz_akan_ joined #salt
04:47 cachedout joined #salt
04:59 halfss joined #salt
05:06 troyready joined #salt
05:12 cachedout joined #salt
05:19 mgw joined #salt
05:24 kalloc joined #salt
05:26 davet joined #salt
05:27 alice|wl joined #salt
05:28 alice|wl hello, I d like to use salt.states.archive but I m not sure if im running the New version 2014.1.0: (Hydrogen).  I installed the debian package with wheezy and unstable sources in apt
05:30 alice|wl the error was state archive.extracted is unavailable. I copied it to _states but now it fails with a python error on the minion http://pastie.org/8713867
05:32 manfred salt --version
05:32 forresta alice|wl, did you put the module in as well?
05:32 cachedout joined #salt
05:33 manfred forresta: can you do that? update modules independently of updateing salt?
05:33 forresta manfred, yea, if you put the module in _modules, and the state in _states, SOMETIMES it will work
05:33 forresta depends on the module
05:33 manfred ok
05:33 forresta if it relies on other updates, you're screwed
05:36 manfred i have just been pulling from develop and trying to clean stuff up as I find it :) but that is good to know if i ever need to use that in the future
05:37 alice|wl forresta: ups
05:40 alice|wl ah, but same result ... I also think it worked once
05:41 forresta did you sync the modules with salt 'minion_name' saltutil.sync_all ?
05:42 forresta manfred, yea it's nice when it works!
05:42 cachedout joined #salt
05:42 alice|wl yes
05:43 forresta what was the output of salt --version
05:44 alice|wl 0.17.5
05:45 forresta hmm yea I don't know if archive will work trying to put it in
05:45 forresta someone was messing around with it a few days ago, but I can't remember if they got it to work or not
05:46 oz_akan_ joined #salt
05:56 halfss joined #salt
05:56 micko joined #salt
05:57 LLKCKfan joined #salt
05:57 MTecknology Is it possible to trim one character from the left of a string with jinja?
06:01 forresta did you try [1:] ?
06:10 astol joined #salt
06:18 manfred is there a way to get a file back up to a master, by using a state file?
06:18 manfred i see cp.push, as a module.
06:21 Hipikat manfred: i haven't tried it, but recently found: http://docs.saltstack.com/topics/tutorials/minionfs.html
06:21 manfred yeah i just thought about that
06:21 Hipikat and i'm pretty sure it's going to be extremely useful.
06:21 manfred I was also looking at just doing a salt-call cp.push
06:22 manfred i will probably try that as well
06:23 manfred since it will let me put the file exactly where I want on the filesystem
06:23 manfred right now,     - name: find  -name {{ grains['localhost'] }}\*.pkg.tar.xz -exec salt-call cp.push /srv/{{ grains['localhost'] }}/{} \; this is working
06:23 manfred even if it is meh
06:24 LLKCKfan Is there any natural ways to relieve pain without using herbs or weed? No drugs
06:24 kalloc joined #salt
06:29 manfred Hipikat: oh, this would be super nice for doing a snapshot of database backups, and then using that to copy over the whole directory to a new minion, and then just starting up the minion and it would immediately be a slave without having to take dumps
06:30 Hipikat yup, that would be what i'm planning! :)
06:33 forresta MTecknology, did that work?
06:34 MTecknology forresta: I didn't see the response. Works great, thanks!
06:34 forresta yea np
06:44 sroegner joined #salt
06:45 Ryan_Lane joined #salt
06:47 oz_akan_ joined #salt
07:05 yomilk joined #salt
07:11 LLKCKfan joined #salt
07:18 manfred Hipikat: yar, you could just use cp.get_dir and pull it over
07:21 Hipikat i must say one thing about this project, it's screwing the "There should be one-- and preferably only one --obvious way to do it" part of my life
07:22 dren joined #salt
07:24 kalloc joined #salt
07:30 fllr joined #salt
07:31 Hipikat manfred: oh right wait yeah get_dir is for pushing from master->minion. (i haven't touched cp much yet.) I think my plans for MinionFS-snapshotted files all just involved salt://{{ minionid }}/... in formulas
07:31 fllr joined #salt
07:32 manfred from what i see in minion fs, you have to push to the master first, and then you are able to pull from the /var/cache/salt/master/minion/<label>/files directory
07:33 manfred as if that was another fileserver_backend
07:34 Hipikat yeah…
07:35 Hipikat i think we're having an agreement
07:48 oz_akan_ joined #salt
07:58 tl-ml joined #salt
08:05 DaveQB joined #salt
08:11 astol joined #salt
08:24 kalloc joined #salt
08:27 drdrdriks joined #salt
08:27 scott_w joined #salt
08:28 rjc joined #salt
08:29 timc3 joined #salt
08:29 strgcloud joined #salt
08:32 fllr joined #salt
08:33 sroegner joined #salt
08:45 halfss joined #salt
08:48 oz_akan_ joined #salt
08:50 oz_akan__ joined #salt
08:51 scott_w joined #salt
08:53 halfss joined #salt
08:59 halfss joined #salt
09:04 fragamus_ joined #salt
09:12 gnugnu joined #salt
09:14 yomilk_ joined #salt
09:17 clearclaw joined #salt
09:18 astol joined #salt
09:24 Franz__ joined #salt
09:24 kalloc joined #salt
09:28 timc3 joined #salt
09:30 yomilk joined #salt
09:32 fllr joined #salt
09:48 basil_kurian_ joined #salt
09:49 basil_kurian_ how can I specify a state in an sls file without an arguement
09:49 basil_kurian_ i mean without parameter
09:49 basil_kurian_ http://pastebin.ubuntu.com/6902255/
09:50 basil_kurian_ i mean , if the package name 'memcached' and its version is returned by calling a module
09:51 oz_akan_ joined #salt
10:00 MrTango joined #salt
10:18 harobed joined #salt
10:19 halfss joined #salt
10:22 sroegner joined #salt
10:23 MohShami joined #salt
10:24 kalloc joined #salt
10:26 yomilk joined #salt
10:27 MohShami hey guys, I have some DNS information in a mysql database, and I'm using the same syntax in the documentation to get the records "{{ salt['mysql.query']('mydb'", but is there a cleaner way to use queries in sls files?
10:31 halfss joined #salt
10:32 fllr joined #salt
10:42 timc3 joined #salt
10:48 ndrei joined #salt
10:52 oz_akan_ joined #salt
10:54 longdays joined #salt
11:01 redondos joined #salt
11:01 redondos joined #salt
11:03 halfss joined #salt
11:06 yomilk joined #salt
11:06 halfss joined #salt
11:12 Katafalkas joined #salt
11:24 kalloc joined #salt
11:26 MohShami is it possible to send the result from a state to another state?
11:26 LLKCKfan joined #salt
11:27 redondos joined #salt
11:29 Kenzor joined #salt
11:32 fllr joined #salt
11:33 rojem joined #salt
11:33 elfixit1 joined #salt
11:34 astol joined #salt
11:49 _viq joined #salt
11:51 Furao joined #salt
11:52 oz_akan_ joined #salt
11:57 timc3 joined #salt
12:01 n8n joined #salt
12:11 sroegner joined #salt
12:24 kalloc joined #salt
12:31 sroegner joined #salt
12:32 fllr joined #salt
12:43 halfss joined #salt
12:43 basil_kurian_ left #salt
12:48 anuvrat joined #salt
12:50 zmart joined #salt
12:50 zmart left #salt
12:53 oz_akan_ joined #salt
12:54 mapu joined #salt
12:56 diegows joined #salt
13:10 botje__ joined #salt
13:14 zzzirk joined #salt
13:24 kalloc joined #salt
13:27 ndrei joined #salt
13:32 fllr joined #salt
13:36 alanj joined #salt
13:40 alanj left #salt
13:41 ckao joined #salt
13:54 oz_akan_ joined #salt
13:59 drdriks joined #salt
14:06 nn0101 joined #salt
14:14 kalloc_ joined #salt
14:20 taion809 joined #salt
14:24 pdayton joined #salt
14:31 kalloc joined #salt
14:32 fllr joined #salt
14:36 jankowiak joined #salt
14:36 kalloc joined #salt
14:40 sgflt joined #salt
14:43 ndrei joined #salt
14:51 LLKCKfan joined #salt
14:55 oz_akan_ joined #salt
14:58 ndrei joined #salt
15:02 Pate_ joined #salt
15:11 Pate_ Hello Salty Seadogs, I need your help regarding our startup's deployment story using TeamCity, SaltStack and Docker. Until recently, we were using TeamCity for CI in combination with Saltstack to trigger a highstate after code is pushed and unit tests are run. Minions would fetch the latest code and update their local state and config files using Pillar from the saltmaster. Now we are trying out
15:11 Pate_ Docker for testing and packaging of application images deployment on the build agent because it simplifies dependency management and running of unit+integration tests. The Problem: configuration templating, which previously occurred on the minion, is now a problem. How do I template our configuration using Saltstack on the build agent for testing and packaging of our docker image? Is salt-call
15:11 Pate_ appropriate for this, and how do I deal with the conditional templating of Production vs QA for packaging a fully-deployable production-ready docker image artefact from the build agent? Should I even be using Saltstack for this?
15:21 rostam joined #salt
15:32 fllr joined #salt
15:33 ndrei joined #salt
15:33 astol joined #salt
15:49 rojem joined #salt
15:55 oz_akan_ joined #salt
15:55 elfixit1 joined #salt
16:01 fllr joined #salt
16:08 halfss joined #salt
16:18 cachedout joined #salt
16:19 Guest96241 joined #salt
16:20 [diecast] joined #salt
16:21 troyready joined #salt
16:23 Veticus joined #salt
16:26 troyready joined #salt
16:29 tvle joined #salt
16:40 rojem joined #salt
16:45 bemehow joined #salt
16:46 anitak joined #salt
16:56 oz_akan_ joined #salt
16:58 Veticus joined #salt
16:59 [diecast] joined #salt
17:10 harobed joined #salt
17:10 harobed joined #salt
17:10 astol joined #salt
17:11 fllr joined #salt
17:11 harobed joined #salt
17:12 gnugnu joined #salt
17:16 MaZ- joined #salt
17:18 justBob joined #salt
17:20 fllr joined #salt
17:25 gnugnu joined #salt
17:33 ndrei joined #salt
17:50 bemehow joined #salt
17:52 logix812 joined #salt
17:54 logix812 if I am using master_tops, and I also have gitfs configured for states and a top file, as I read the docs, the top file from gitfs should be merged with whatever the master_tops callable returns. I'm asking to make sure I understand the docs. I haven't tried anything yet, I just wanted to make sure I got that right
17:55 gnugnu joined #salt
17:57 oz_akan_ joined #salt
18:02 jankowiak joined #salt
18:07 gnugnu joined #salt
18:12 manfred http://saltybet.com
18:21 john_unified joined #salt
18:23 LLKCKfan joined #salt
18:26 clintberry joined #salt
18:26 clintberry anyone know how to install an old version of salt master?
18:27 clintberry probably no one in here on a sunday...
18:28 manfred you could install from git using salt-bootstrap and specify an old tag?
18:29 manfred curl -L http://bootstrap.saltstack.org | sudo sh -s -- -M git v0.17.4
18:29 manfred that is how i would do it
18:30 manfred then saltcloud for your minions, with script_args: git v0.17.4
18:30 manfred so all of the minions get bootstrapped with the same version
18:32 manfred clintberry: ^^
18:32 clintberry awesome! you are the man
18:32 clintberry I won't tell you the version I am installing. It is embarrassing :-)
18:33 manfred heh no worries
18:33 gnugnu joined #salt
18:35 gnugnu1 joined #salt
18:35 ndrei joined #salt
18:40 ndrei joined #salt
18:58 oz_akan_ joined #salt
18:58 manfred is there a better way to event.fire_master at the end of a highstate than adding in a cmd.run that does a salt-call on the minion? cause this feels gross
19:02 gnugnu1_ joined #salt
19:03 dave_den manfred: use http://docs.saltstack.com/ref/modules/all/salt.modules.event.html  from a module state http://docs.saltstack.com/ref/states/all/salt.states.module.html
19:04 fragamus_ joined #salt
19:05 manfred dammit.  Yup that is what i have been looking for
19:17 Mua_ joined #salt
19:23 manfred a module state was what I was looking for, so much better than the dumb cmd.run hack i was doing heh
19:27 Franz__ joined #salt
19:37 redondos joined #salt
19:37 redondos joined #salt
19:45 clintberry joined #salt
19:47 zzzirk joined #salt
19:49 mapu joined #salt
19:50 ajw0100 joined #salt
19:51 clintberry joined #salt
19:51 scott_w joined #salt
19:55 mwmnj joined #salt
19:56 clintberry joined #salt
19:58 Veticus joined #salt
19:58 oz_akan_ joined #salt
20:02 mapu_ joined #salt
20:03 mapu left #salt
20:07 waverider joined #salt
20:08 clintberry joined #salt
20:16 LLKCKfan I have some chicken strip that have already been cook and then freeze(where freeze when we go them) can I just heat them up on the stove and eat them
20:20 jankowiak joined #salt
20:24 Pate_ joined #salt
20:25 KFDM joined #salt
20:26 joehillen joined #salt
20:27 hunter_ joined #salt
20:28 LLKCKfan joined #salt
20:29 gnugnu1 joined #salt
20:29 KFDM joined #salt
20:30 KFDM left #salt
20:30 zooz joined #salt
20:32 jeremyfelt joined #salt
20:38 jimallman joined #salt
20:57 ggoZ joined #salt
20:57 terminalmage Corey: I see you and I are both speaking at UpSCALE
20:58 Corey terminalmage: We are.
20:58 terminalmage yeah, but when I go to the page I can't see the abstract
20:58 terminalmage says access denied
20:59 terminalmage so, 40% of the speakers are Salt evangelists, sweet
20:59 Corey terminalmage: Where is the upscale list?
20:59 terminalmage http://www.socallinuxexpo.org/scale12x/upscale
20:59 oz_akan_ joined #salt
21:00 terminalmage my talk is a re-telling of "if you give a mouse a cookie", only with the mouse replaced by a programmer
21:00 Corey terminalmage: Mine is how to give a terrible technical interview.
21:00 terminalmage inspired by a conversation between Gareth and I here in #salt several weeks ago
21:00 terminalmage Corey: oh man I can't wait
21:01 apergos joined #salt
21:03 Corey terminalmage: Do we get free admission since we're speaking? :-)
21:06 cachedout joined #salt
21:06 terminalmage good question
21:07 Corey I liked it.
21:07 terminalmage :)
21:07 terminalmage perhaps Gareth could answer? either way, if my admission isn't covered, SaltStack would take care of it...
21:08 terminalmage not that SCaLE is expensive, hell, it's one of the cheapest
21:08 terminalmage and a great value IMO
21:15 pentabular joined #salt
21:16 yurei joined #salt
21:19 jimallman joined #salt
21:20 clintberry joined #salt
21:21 waverider left #salt
21:22 DaveQB joined #salt
21:32 clintberry joined #salt
21:36 alice|wl k, with zip the archive sate works well ... with tar I dont understand the error
21:37 pentabular left #salt
21:38 rcsheets joined #salt
21:41 n8n joined #salt
21:41 bitblender joined #salt
21:41 kalloc joined #salt
21:41 bitblender yeah
21:49 felixhummel joined #salt
21:50 rcsheets I'd like to use the same git repository for the fileserver and also pillars. I've created the repo and pointed fileserver_backend at it, and placed my state files under a subdirectory called salt. The gitfs_root is set to salt and that works fine. I want to put the pillar info under the pillar directory, but I don't see a way to configure the subdirectory
21:50 rcsheets for the GitPillar.
21:50 rcsheets oops. line got too long :-/
21:51 rcsheets anyway, is it possible to tell GitPillar to look in a subdirectory of the repo?
21:56 dave_den rcsheets: no, as far as i know you cannot do that. and it's also probably a Really Bad Idea (tm)
21:56 rcsheets why bad?
21:56 dave_den because your minions would have access to all of your pillar data
21:57 rcsheets they would?
21:58 dave_den yes. there is no access restriction on what files the minions can access from the fileserver_backends configured on the master
21:59 rcsheets so they're not restricted to only accessing files under the configured gitfs_root?
22:00 dave_den oh, i missed that part of your comment
22:00 rcsheets yeah sorry it was kind of a wall of text
22:00 yomilk joined #salt
22:00 oz_akan_ joined #salt
22:01 dave_den i don't think there is a way to tell the pillar to look into a subdir though
22:02 rcsheets ok. any reason that would be a stupid idea, other than the setup you were worried i might be working toward?
22:04 dave_den no, it would theoretically work
22:05 rcsheets ok, maybe i'll figure out how to make that happen then
22:06 scott_w joined #salt
22:12 kalloc joined #salt
22:26 clintberry joined #salt
22:38 ckao joined #salt
22:39 ajw0100 joined #salt
22:47 thayne joined #salt
22:49 zzzirk joined #salt
22:53 forresta joined #salt
22:58 yomilk joined #salt
23:00 Ryan_Lane joined #salt
23:00 halfss joined #salt
23:00 Ryan_Lane joined #salt
23:01 oz_akan_ joined #salt
23:05 _monokrome joined #salt
23:06 manfred http://paste.gtmanfred.com/zcP/ i can't for the life of me figure out why cp.get_dir works from the command line, but not with that reactor file
23:06 halfss joined #salt
23:08 jasonrm joined #salt
23:12 crazysim joined #salt
23:18 cachedout joined #salt
23:18 bhosmer_ joined #salt
23:19 jasonrm joined #salt
23:21 emostar joined #salt
23:23 _monokrome joined #salt
23:24 twiedenbein joined #salt
23:24 cellofellow joined #salt
23:27 crazysim joined #salt
23:30 tvle joined #salt
23:31 ajw0100 joined #salt
23:34 retran joined #salt
23:35 retr0h joined #salt
23:35 retr0h joined #salt
23:37 manfred minus the other things wrong with it, i have fixed all of those.  it works if I use cmd.cmd.run and salt-call, but not if i just do cmd.run and try to use the cp.get_dir
23:38 manfred not if i just do module.run*
23:38 elfixit1 joined #salt
23:39 manfred specifically the top one works and the bottom doesn't http://paste.gtmanfred.com/0uo/
23:39 LLKCKfan joined #salt
23:40 snuffeluffegus joined #salt
23:40 emostar joined #salt
23:41 tedski joined #salt
23:41 jasonrm joined #salt
23:42 retran joined #salt
23:44 BenCoinanke joined #salt
23:44 bretep joined #salt
23:52 _monokrome joined #salt

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