Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-01-03

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

All times shown according to UTC.

Time Nick Message
00:00 viq well, let's see then
00:02 viq grep user /etc/salt/minion.d/f_defaults.conf
00:03 intr1nsic joined #salt
00:04 boogibugs_ ok i see
00:04 boogibugs_ #user: root
00:04 boogibugs_ user:
00:04 boogibugs_ - /srv/user_salt
00:04 boogibugs_ user:
00:04 boogibugs_ - /srv/user_pillar
00:04 * viq facepalms
00:04 boogibugs_ should that first uyser be uncommented?
00:04 boogibugs_ sorry
00:05 viq no, the user: lines below should be root:
00:05 boogibugs_ ah ok
00:05 boogibugs_ the other way round
00:05 viq That's not your fault, it's theirs
00:05 boogibugs_ my nad
00:05 viq If that file was automatically created that is ;)
00:05 boogibugs_ yeah they mentioned on the channle it was bug
00:05 boogibugs_ i think it is as i didint do it... ;)
00:05 boogibugs_ *didn't
00:06 viq So i guess delete the 'user' user, and let's try again ;)
00:07 boogibugs_ yep and change those entries to root in the conf file
00:07 viq aye
00:08 boogibugs_ so same error but now at the bottom it says no matching env for env 'user' found.. do i need to run that sync again or is that user setting in more places than that conf file?
00:09 viq I guess grep -R user /etc/salt/ and see what comes up
00:09 jamesp9 joined #salt
00:10 boogibugs_ ok
00:12 boogibugs_ doesnt seem to be anymore refs in that location for user should i try /srv/salt too?
00:12 viq You can, or you can try highstate first ;)
00:13 stooj joined #salt
00:13 subsignal joined #salt
00:14 boogibugs_ should i clear the cache folders as well? the error references that location or its that after it compiles the code it puts it in cache
00:15 viq Shouldn't hurt
00:15 viq Getting late here, time for me to head out, I hope you get it working
00:16 viq I meant to play with the new qubes, but didn't get around to it yet ;)
00:16 boogibugs_ i will put it up on gist see if it makes sense to you. i can delete all the data from there or how far down the tree /var/cache/salt/minion/files/dom0/qvm/
00:16 boogibugs_ yeah way late for me too here gone 2  in the morning i hate when i get stuck with an issue i cant let it go....
00:17 viq aye, I do that too
00:17 viq I usually just rm -rf /var/cache/salt/* when in doubt ;)
00:18 boogibugs_ ok will give it a go
00:18 viq And since you said you're just trying it out and it errors out pretty early on, worst case you reinstall it ;)
00:19 boogibugs_ this is my second install
00:19 * viq nods
00:19 boogibugs_ and now it has a new error but hey i think its time ot quit for tonight...
00:19 viq aye, good night, maybe morning will be more friendly to debugging ;)
00:19 boogibugs_ thanks for your help i may jump back on tomoz, are u on GMT time then or how faer back?
00:19 boogibugs_ *far
00:19 viq I'm 1h behind you
00:19 boogibugs_ iam gmt +2
00:20 boogibugs_ ok
00:20 viq though I'm on at some random times
00:20 boogibugs_ ok no probs
00:20 boogibugs_ thanks for your help so far
00:20 viq also now I'm on #qubes as well ;)
00:20 viq sure, I find both projects very interesting, though I don't heavily use either at the moment
00:21 boogibugs_ yeah dont expect much form there at least its not an official channel.. ;)
00:21 boogibugs_ i have been asking ?'s for last 3 days and it seems very sporadic for answers and who answers you
00:21 boogibugs_ but hey ho thats the way of the interwebs i guess
00:22 viq and of open source projects
00:25 viq boogibugs_: https://groups.google.com/forum/#!topic/qubes-devel/j9UmiaGSEsQ
00:41 boogibugs_ viq: ty i will check it out, now not going to bed anymore.. .lol
00:48 toastedpenguin joined #salt
00:48 keimlink_ joined #salt
00:53 intr1nsic joined #salt
00:55 oida joined #salt
00:58 thejrose1984 joined #salt
01:02 brianfeister joined #salt
01:09 XenophonF joined #salt
01:14 tmclaugh[work] joined #salt
01:15 yomilk joined #salt
01:17 XenophonF setting up a build environment for salt's prereqs is kind of a pain, but i'm almost there
01:17 XenophonF (going the bdist_msi route)
01:18 XenophonF some key steps along the way include installing the windows 7/.net 3.5 platform sdk, NOT the windows 7/.net 4.0 version
01:19 XenophonF i couldn't get the Visual C++ for Python 2.7 package to install properly, might be user error
01:33 Guest94421 joined #salt
01:46 quasiben joined #salt
01:55 tmclaugh[work] joined #salt
02:14 wangofett joined #salt
02:15 subsignal joined #salt
02:20 aqua^c joined #salt
02:25 catpigger joined #salt
02:30 Ashald joined #salt
02:49 bhosmer joined #salt
02:51 brianfeister joined #salt
03:06 intr1nsic joined #salt
03:18 yomilk joined #salt
03:25 bVector_ anyone know of a site for posting/browsing salt states that people have written? (other than github) I'm thinking like chef supermarket cookbooks
03:54 om joined #salt
04:01 racooper joined #salt
04:06 yomilk joined #salt
04:17 malinoff joined #salt
04:38 yomilk joined #salt
04:40 brianfeister joined #salt
04:41 moogyver joined #salt
04:42 intr1nsic joined #salt
04:53 NV joined #salt
04:57 stooj joined #salt
04:59 MK_FG joined #salt
05:01 ghanima joined #salt
05:06 Guest13908 joined #salt
05:17 subsignal joined #salt
05:29 XenophonF bVector_: I assume you've already seen the saltstack-formulas GitHub account.
05:30 XenophonF bVector_: aside from that plus shared state repositories such as my own (https://github.com/irtnog/salt-states), I don't know what else is out there
05:35 Storgance joined #salt
05:37 Storgance I apologize for this question ahead of time, but what is the main kind off topic for #salt?
05:38 XenophonF well, we probably can't help you with questions about chef
05:38 Storgance *of
05:43 nyx__ joined #salt
05:50 colegatron joined #salt
05:56 aqua^c joined #salt
05:58 Slimmons joined #salt
06:00 oida joined #salt
06:01 Slimmons Weird question.  Saltstack is developed under the Apache 2.0 license.  For merchandise purposes, does that mean I could make a saltstack hat, and sell them?  After reading the license, it looks like it does.  I know with the GNU GPL license, that you can, but I want to make sure.
06:01 Slimmons I'm not trying to become rich off of saltstack hats :).  I just make hats sometimes, and have a really small store where I would probably list them if I make one.
06:02 Slimmons Also, is there anywhere more official that I could ask, just to make sure I don't get sued for making a few hats?
06:19 racooper might want to ask sometime closer to business hours in US Mountain Standard Time
06:25 Slimmons thx
06:27 XenophonF Slimmons: SaltStack's marks and logos are probably registered/trademarked/copyrighted
06:28 racooper you can email them too, contact info is on http://saltstack.com/contact/
06:28 XenophonF the code being under Apache 2.0 doesn't mean you can use the graphics from their commercial web site without permission, for example
06:29 brianfeister joined #salt
06:29 XenophonF Storgance: what kinds of questions do you have about salt? i think pretty much anything related to it is on-topic here
06:40 anmol joined #salt
06:45 linjan_ joined #salt
06:48 intr1nsic joined #salt
07:28 subsignal joined #salt
07:54 yomilk joined #salt
08:00 intr1nsic joined #salt
08:11 cswang joined #salt
08:17 brianfeister joined #salt
08:23 tmclaugh[work] joined #salt
08:30 Crazy67 joined #salt
08:37 yomilk joined #salt
08:51 bhosmer joined #salt
08:53 yomilk_ joined #salt
09:06 otter768 joined #salt
09:15 slav0nic joined #salt
09:31 subsignal joined #salt
09:38 evle1 joined #salt
09:39 Guest45580 joined #salt
09:39 HardWall joined #salt
09:40 Guest45580 left #salt
10:01 TyrfingMjolnir joined #salt
10:06 brianfeister joined #salt
10:11 tmclaugh[work] joined #salt
10:12 HardWall joined #salt
10:12 intr1nsic joined #salt
10:24 subsignal joined #salt
10:25 intr1nsic joined #salt
10:26 aqua^c joined #salt
10:49 boogibugs_ joined #salt
10:51 yomilk joined #salt
11:07 otter768 joined #salt
11:09 intr1nsic joined #salt
11:10 boogibugs_ viq: are you online?
11:11 keimlink joined #salt
11:12 gerhardqux found a pro tip! https://gist.github.com/ryan-lane/14deaff4e9d67842ef89
11:12 gerhardqux No more pyflakes errors for salt dunders
11:21 viq boogibugs_: for a short moment right now, yes. Wassup?
11:22 elsmo joined #salt
11:23 boogibugs_ good news got my qubes up and running. I managed to get a netvm and then a fwrunning and then updated dom0 files and now the state.highstate has created the def vms for me to work. at last. now the hard part starts learning howto use this properly. ;)
11:23 viq boogibugs_: cool :)
11:24 tinyhippo joined #salt
11:24 boogibugs_ yeah its pretty tricky as i have used vmware and kvm for years but mainly for enterprise stuff but running it on your local machine is a bit different
11:24 boogibugs_ now gotta figure out how many vms i need... lol so i dont use all my mem up
11:25 viq how much RAM do you have?
11:25 viq When playing with qubes I think I was regularly running 5-8 VMs
11:26 boogibugs_ 8gb for now I will put 16 or 32 in, seems there is a company that made mem for the librem guys getting 32 working on a broadwell chip that had a 16Gb limit according to intel specs
11:26 viq you have a librem machine?
11:28 viq back in a few minutes
11:28 boogibugs_ i was going to buy one of them but thought shipping from states and then any issues i had with it i would have to send it back as they are only starting out out as a hardware company but i like their philosophy even if the machine is not fully open yet. Nope but i nearly bought one instead spent too much money on an HP Zbook
11:28 boogibugs_ kk
11:47 intr1nsic joined #salt
11:50 colegatron joined #salt
11:55 brianfeister joined #salt
11:56 boogibugs_ joined #salt
11:56 boogibugs_ machine went to sleep
11:56 GreatSnoopy joined #salt
11:59 viq how about the user? ;)
11:59 tmclaugh[work] joined #salt
12:04 Crazy67 joined #salt
12:08 voileux joined #salt
12:38 RobertChen117 joined #salt
12:38 voileux joined #salt
12:46 tinyhippo how do you make sure a pillar is run on a minion
12:47 viq you don't "run" pillars
12:47 viq pillars are just a set of variables to use
12:47 tinyhippo ok, I have some pillars that contain user data, and some sls files to seed that data onto the minions
12:47 tinyhippo so I need to "run" the sls files?
12:49 viq I'd start with pillar.get to make sure it has the data you expect, and then yes, tell salt to run those states
12:51 subsignal joined #salt
12:52 malinoff joined #salt
12:54 tinyhippo hrm
12:55 catpig joined #salt
13:01 viq ?
13:02 Crazy67 joined #salt
13:04 abednarik joined #salt
13:07 babilen tinyhippo: What do you mean by "some sls files to seed that data onto the minions" ?
13:07 otter768 joined #salt
13:08 tinyhippo babilen: I'm very new to salt... I have created a pillar containing user data.. how do I make it create users etc
13:10 viq tinyhippo: have you ever worked with any other configuration management?
13:11 tinyhippo other than a load of rubbish bash scripts or AWS cloudformation, no
13:12 viq OK. I guess it would be best to go through some of the tutorials/guides on the site, but in short: pillars are data, think - variables. states are the instructions _what_ to do, eg looping over the data you have in pillars
13:13 babilen tinyhippo: Okay, I would work through https://docs.saltstack.com/en/develop/topics/tutorials/index.html (in particular the state and pillar walkthrough), then read https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html before you use https://github.com/saltstack-formulas/users-formula/ to create your users
13:16 tinyhippo babilen: looking through it, I've kind of done the majority of that through spurious tutorial guides already - however they seem to miss out the important bit of enabling and applying states to servers
13:16 tinyhippo but I'll still read through it anyway - thanks viq and babilen
13:17 viq tinyhippo: "salt 'id.of.your.server' state.sls the.name.of.your.state"
13:17 tinyhippo viq: got it now and it works ^_^
13:17 viq or if you have the states to be applied defined in your top.sls then "salt 'id.of.your.server' state.highstate'
13:18 viq Where the latter I would say is recommended, as that way you know what states are to be applied, instead of just ad-hoc applying random stuff
13:21 * viq kan haz opinions
13:30 mfournier joined #salt
13:36 N-Mi joined #salt
13:44 brianfeister joined #salt
13:47 tmclaugh[work] joined #salt
13:48 RobertChen117 joined #salt
13:50 aqua^c joined #salt
14:01 abednarik joined #salt
14:14 tinyhippo has anyone had trouble with saltminions on ubuntu becoming disconnected after around 30 minutes or so? I have to ssh to the server to restart the minion daemon
14:15 gerhardqux tinyhippo: oom killer?
14:15 viq tinyhippo: look for some keepalive settings, it could be due to some networking equipment along the way
14:15 viq or that
14:16 tinyhippo gerhardqux: likely OOM as they are small instances..
14:16 tinyhippo although it also happens on one of our beefy build servers, too
14:18 keimlink joined #salt
14:24 babilen tinyhippo: Anything in the minion logs?
14:25 tinyhippo babilen: nup
14:26 gerhardqux tinyhippo: dmesg? 'find /var/log -mmin -5 -ls'?
14:26 tinyhippo gerhardqux: http://fpaste.org/306671/45183120/
14:29 viq joined #salt
14:29 rmnuvg joined #salt
14:34 gerhardqux tinyhippo: can you correlate the time with a cronjob maybe?
14:34 gerhardqux something on you systems is stopping the minion
14:35 tinyhippo there is a cron that performs an rsync every 5 minutes, however I don't see why it would kill the daemon
14:38 gerhardqux "dmesg -T" gives human readable timestamps
14:39 job seems that salt doesnt work at all in an ipv6-only environment
14:40 tinyhippo gerhardqux: doesnt seem to correlate with any crons
14:40 job the box doesnt even have a valid reachable ipv4 address, yet salt minion tries to connect to the master's ipv4 address https://p.6core.net/p/9vnXDryxPGI3Afc34VEUl3Ck
14:40 job which is dumb, because the salt master has an ipv6 address as well
14:41 rmnuvg joined #salt
14:47 job mmm, appears the salt master ignores ipv6 config
14:47 job root@master01:~# netstat -lpn | grep :450
14:47 job tcp6       0      0 0.0.0.0:4505            :::*                    LISTEN      1541/python
14:47 job tcp6       0      0 0.0.0.0:4506            :::*                    LISTEN      1554/python
14:47 job root@master01:~# grep ipv6 /etc/salt/master
14:47 job ipv6: True
14:49 gerhardqux job: what does your "interface" setting say?
14:50 rmnuvg joined #salt
14:50 job i didnt configure 'interface'
14:50 job but i see now that "interface: '::'" is also required
15:08 Lionel_Debroux joined #salt
15:08 otter768 joined #salt
15:13 kusuriya joined #salt
15:28 lompik joined #salt
15:28 HardWall joined #salt
15:29 HardWall joined #salt
15:31 HardWall joined #salt
15:33 brianfeister joined #salt
15:35 tmclaugh[work] joined #salt
15:42 nyx__ joined #salt
16:00 CeBe joined #salt
16:01 yomilk joined #salt
16:20 ThomasJ joined #salt
16:33 aqua^c joined #salt
16:44 sjorge joined #salt
16:44 sjorge joined #salt
16:46 cyborg-one joined #salt
16:51 keimlink joined #salt
16:53 wych joined #salt
17:02 yomilk joined #salt
17:03 tmclaugh[work] joined #salt
17:06 Hipikat joined #salt
17:07 felskrone joined #salt
17:08 denys joined #salt
17:09 otter768 joined #salt
17:12 Fiber^ joined #salt
17:12 boogibugs_ joined #salt
17:13 boogibugs_ user was busy getting packed for trip to lapland next week... ;)
17:13 rmnuvg joined #salt
17:22 brianfeister joined #salt
17:25 MK_FG joined #salt
17:25 subsignal joined #salt
17:33 slav0nic joined #salt
17:33 MK_FG joined #salt
17:38 TyrfingMjolnir joined #salt
17:38 colegatron joined #salt
17:45 tmclaugh[work] joined #salt
17:47 rmnuvg joined #salt
17:48 MK_FG joined #salt
18:04 yomilk joined #salt
18:07 linjan_ joined #salt
18:09 futuredale joined #salt
18:14 mdupont_ joined #salt
18:19 subsignal joined #salt
18:20 Arbusto joined #salt
18:24 rmnuvg joined #salt
18:38 MK_FG joined #salt
18:50 rmnuvg joined #salt
18:51 elsmo joined #salt
19:06 justanotheruser joined #salt
19:10 wt joined #salt
19:10 otter768 joined #salt
19:11 brianfeister joined #salt
19:11 abednarik joined #salt
19:33 maboum joined #salt
19:34 otter768 joined #salt
19:36 Score_Under joined #salt
19:45 honestly can anyone here try to install https://github.com/saltstack-formulas/graphite-formula? it seems pretty fucked (note: I'm on 2015.5.3 because that's what you get on debian jessie using the saltstack repo)
19:48 boogibugs_ joined #salt
19:49 yomilk joined #salt
19:52 AndreasLutro that formula looks absolutely ridiculous honestly
19:52 honestly lol
19:52 AndreasLutro but then again maybe it's just graphite that's horrible
19:53 honestly I am just running sudo salt-call state.sls graphite test=True -l debug
19:53 MK_FG joined #salt
19:54 honestly and it breaks because it doesn't install prereqs
19:54 GnuLxUsr joined #salt
19:54 Kelsar joined #salt
19:56 AndreasLutro have you added example pillar data? the formula may depend on it
19:56 honestly no
19:56 honestly it doesn't depend on it
19:57 fkh joined #salt
19:58 AndreasLutro dunno then. I generally never use formulas, always write from scratch
19:58 honestly ah there we go
19:58 honestly it needs something set in grains
19:58 baweaver joined #salt
19:59 honestly but this is still funky
19:59 lemur joined #salt
20:03 honestly yeah it just breaks because of https://github.com/saltstack-formulas/graphite-formula/blob/master/graphite/init.sls#L4 if that grain isn't set it just executes the include line which fails because it actually depends on everything under it
20:04 honestly isn't/wasn't there something about included states not actually being executed unless they are requisited in the sls itself?
20:05 nyx__ joined #salt
20:06 AndreasLutro included states always get executed
20:07 honestly then the placement of that {% if %} is just nonsensical
20:07 AndreasLutro agreed
20:09 aqua^c joined #salt
20:09 MK_FG joined #salt
20:10 honestly whelp time to fork and PR
20:11 thejrose1984 joined #salt
20:13 overyander joined #salt
20:14 honestly ugh I wish I could find proper docs for what the include statement does
20:17 AndreasLutro https://docs.saltstack.com/en/latest/ref/states/include.html ?
20:18 drawsmcgraw left #salt
20:20 honestly oh good
20:20 honestly I only found the tutorial
20:24 boogibugs_ joined #salt
20:31 linjan_ joined #salt
20:35 Crazy67 joined #salt
20:39 keimlink joined #salt
20:53 andrew_v joined #salt
20:56 TyrfingMjolnir joined #salt
21:00 brianfeister joined #salt
21:04 linjan_ joined #salt
21:12 Crazy67 joined #salt
21:14 subsignal joined #salt
21:14 abednarik joined #salt
21:16 felskrone joined #salt
21:25 shaggy_surfer joined #salt
21:25 subsignal joined #salt
21:33 subsignal joined #salt
21:41 otter768 joined #salt
21:42 arif-ali joined #salt
21:46 armyriad joined #salt
21:47 elsmo joined #salt
21:49 ronrib joined #salt
21:50 yomilk joined #salt
22:08 quasiben joined #salt
22:09 rmnuvg joined #salt
22:12 otter768 joined #salt
22:21 tzero joined #salt
22:34 denys joined #salt
22:34 toastedpenguin joined #salt
22:34 mapu joined #salt
22:37 toastedpenguin joined #salt
22:41 Dan_ joined #salt
22:41 JoshuaX joined #salt
22:42 otter768 joined #salt
22:46 JoshuaX_ joined #salt
22:48 brianfeister joined #salt
22:50 akhter joined #salt
22:52 ashmckenzie joined #salt
22:56 yomilk joined #salt
22:59 abednarik joined #salt
23:00 mosen joined #salt
23:04 Rene_ joined #salt
23:11 cyborg-one joined #salt
23:24 otter768 joined #salt
23:24 Rene_ joined #salt
23:25 shaggy_surfer joined #salt
23:41 rmnuvg joined #salt
23:41 RobertChen117 joined #salt
23:42 colegatron joined #salt
23:44 aqua^c joined #salt
23:51 rmnuvg joined #salt

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