Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-05-31

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

All times shown according to UTC.

Time Nick Message
00:03 zerocool_ joined #salt
00:04 socket- joined #salt
00:05 SaucyElf joined #salt
00:06 N-Mi joined #salt
00:06 N-Mi joined #salt
00:07 MTecknology Eugene: {%  set auth = pillar['system']['authentication'] %} --> {% set auth = pillar.get('system:authentication', {}) %}
00:08 Eugene MTecknology - Pull Requests welcomed
00:08 Eugene See also LICENSE.txt ;-)
00:12 gtmanfred dstensnes: cool
00:12 Sokel joined #salt
00:16 Sokel left #salt
00:17 masber joined #salt
00:18 gimpy936 joined #salt
00:18 woodtablet joined #salt
00:20 MTecknology Eugene: 1) I meant salt['pillar.get']()  2) salt.pillar.get() also works  3) I only mentioned it because the Saltian Grand-Salts have deemed the pillar dict to be poor grammar.  4) I could have come up with a funnier response if I didn't get distracted.
00:20 MTecknology Eugene: and I wanted to make sure you were aware it was an option :)
00:21 mosen joined #salt
00:21 * MTecknology actually doesn't like that particular license just because I picture Oracle someday saying, "It says do what the frick you want, well... we want to own the copyright, so now we do."
00:22 MTecknology or.. "I want to relicense"
00:26 whytewolf i could see Oracle sitting in a dark room. laughing manically. as they go through github looking for anything with a DWTFYW license to steal for their IP
00:26 masber joined #salt
00:26 socket- joined #salt
00:27 MTecknology I wish github blocked repositories without a valid license file..
00:29 MTecknology Eugene: It's nice and easy to look through this and see what impacts what. +1  :)
00:31 woodtablet left #salt
00:34 Eugene MTecknology - I wasn't aware; per the commit history I haven't changed much in my Salt infrastructure for a year. I own less servers than I used to, and they do a great job of not breaking
00:35 Deliant joined #salt
00:36 Eugene And yes, being "simple" and "usable" is my basic goal, and why I don't use formulas. I need like, one config file managed and a service to run. That's it.
00:50 MeltedLux joined #salt
00:57 Deliant joined #salt
00:58 dxiri joined #salt
00:59 fritz09_ joined #salt
01:03 fracklen joined #salt
01:08 mpanetta joined #salt
01:08 zerocoolback joined #salt
01:08 J0hnSteel joined #salt
01:11 nicksloan joined #salt
01:14 ahrs joined #salt
01:26 packeteer joined #salt
01:36 ecdhe joined #salt
01:38 PatrolDoom joined #salt
01:40 aneeshusa joined #salt
01:48 Praematura_ joined #salt
01:54 _JZ_ joined #salt
02:09 edrocks joined #salt
02:15 Bryson joined #salt
02:23 zerocoolback joined #salt
02:23 zerocoolback joined #salt
02:25 rmelero joined #salt
02:42 dxiri joined #salt
02:54 nethershaw joined #salt
02:59 debian112 joined #salt
03:11 debian112 joined #salt
03:12 J0hnSteel joined #salt
03:14 sp0097 joined #salt
03:19 sp0097 joined #salt
03:20 aneeshusa joined #salt
03:31 miruoy joined #salt
03:32 raspado joined #salt
03:40 Praematura joined #salt
03:43 nicksloan joined #salt
03:52 om2 joined #salt
03:58 mpanetta joined #salt
04:11 edrocks joined #salt
04:16 inetpro joined #salt
04:27 druonysus joined #salt
04:46 Rubin joined #salt
04:52 Rubin joined #salt
05:01 Shirkdog joined #salt
05:06 whytewolf /quit
05:13 Shirkdog joined #salt
05:20 Bock joined #salt
05:21 beardedeagle joined #salt
05:22 CrummyGummy joined #salt
05:25 inetpro joined #salt
05:35 dxiri joined #salt
05:49 impi joined #salt
05:56 _KaszpiR_ joined #salt
05:59 karlthane joined #salt
06:03 miruoy joined #salt
06:07 do3meli joined #salt
06:07 do3meli left #salt
06:14 pbandark joined #salt
06:15 fracklen joined #salt
06:16 preludedrew joined #salt
06:18 om2 joined #salt
06:20 Heartsbane joined #salt
06:23 lazybear joined #salt
06:27 vishvendra joined #salt
06:27 vishvendra Hi everyone..
06:27 vishvendra I want to give the saltstack exam ?
06:28 vishvendra is it mandatory to have official traiing of saltstack ?
06:28 vishvendra Or I can give the exam without getting training ?
06:29 coredumb vishvendra: AFAIK it is not
06:29 Shados joined #salt
06:31 felskrone joined #salt
06:36 vishvendra coredumb: Thanks... Means I can go for exam directly...
06:42 dhoutz joined #salt
06:42 coredumb vishvendra: I think so
06:42 coredumb be prepared for 80 questions in 60 min
06:54 hemebond Holy crap.
06:54 hemebond What kinds of questions are they?
06:57 upb what's the second word on the first slide in training day #1?
06:58 Yamazaki-kun joined #salt
07:05 Ricardo1000 joined #salt
07:06 golodhrim|work joined #salt
07:09 jas02 joined #salt
07:13 vishvendra coredumb: I think that I can do
07:13 ronnix joined #salt
07:20 hojgaard joined #salt
07:21 jas02 joined #salt
07:25 saintpablo joined #salt
07:26 saintpablos joined #salt
07:40 evle joined #salt
07:42 cablekev1n joined #salt
07:45 Yamazaki-kun joined #salt
07:50 dario joined #salt
07:53 coredumb hemebond: haven't taking it yet, but from what I know from ppl that did, it's mostly about core - at least it was in the past
07:53 coredumb btw I've taken Admin I and II and it was worth it
08:02 pbandark joined #salt
08:05 mikecmpbll joined #salt
08:09 impi joined #salt
08:09 oida joined #salt
08:15 ronnix joined #salt
08:15 rebbdohr joined #salt
08:17 LondonAppDev joined #salt
08:22 fracklen joined #salt
08:23 Rumbles joined #salt
08:28 karlthane joined #salt
08:42 Mattch joined #salt
08:52 babilen What would https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#salt.states.service.mod_watch for a service do?
08:52 zerocool_ joined #salt
08:52 babilen Restart it?
08:53 Dr_Jazz joined #salt
08:53 jhujhiti1 joined #salt
08:53 brd_ joined #salt
08:53 linovia_ joined #salt
08:53 brucewang joined #salt
08:54 tapoxi_ joined #salt
08:54 pmcg_ joined #salt
08:54 N-Mi joined #salt
08:54 N-Mi joined #salt
08:54 bbbryson joined #salt
08:54 sknebel__ joined #salt
08:55 all joined #salt
08:55 hashwagon_ joined #salt
08:56 baffle__ joined #salt
08:56 wangofet1 joined #salt
08:56 TRMander1on joined #salt
08:56 LostSoul_ joined #salt
08:56 jcristau_ joined #salt
08:56 pewpew_ joined #salt
08:57 sjorge_be joined #salt
08:58 sjorge_be joined #salt
08:59 jijiki joined #salt
08:59 simmel_ joined #salt
08:59 TomJepp_ joined #salt
08:59 smkelly_ joined #salt
08:59 manfred joined #salt
09:00 masterinire joined #salt
09:00 NightMonkey_ joined #salt
09:04 garphy` joined #salt
09:04 karlthane joined #salt
09:06 nledez joined #salt
09:07 permalac joined #salt
09:07 dario joined #salt
09:07 BlackBishop joined #salt
09:08 lorengordon joined #salt
09:09 eightyeight joined #salt
09:09 pcn joined #salt
09:13 Savemech joined #salt
09:19 tom29739 joined #salt
09:23 Rumbles joined #salt
09:23 wangofett joined #salt
09:24 fracklen_ joined #salt
09:30 pbandark joined #salt
09:56 wangofett joined #salt
10:00 karlthane joined #salt
10:02 wangofett joined #salt
10:03 Hybrid joined #salt
10:03 TomJepp_ left #salt
10:03 candyman88 joined #salt
10:03 TomJepp joined #salt
10:05 bvcelari joined #salt
10:14 wangofett joined #salt
10:16 edrocks joined #salt
10:20 wangofett joined #salt
10:26 wangofett joined #salt
10:26 Rumbles joined #salt
10:27 sh123124213 joined #salt
10:31 wangofett joined #salt
10:35 garethhowell joined #salt
10:39 LondonAppDev_ joined #salt
10:40 fracklen joined #salt
10:43 dxtr How do I refresh grains that are in my salt-cloud cloud.map?
10:46 wangofett joined #salt
10:48 dxtr Can I do that without destroying the vm?
10:50 Rumbles joined #salt
10:51 karlthane joined #salt
10:54 wangofett joined #salt
11:00 sh123124213 joined #salt
11:05 sh123124213 joined #salt
11:09 Kelsar joined #salt
11:09 sh123124213 joined #salt
11:13 candyman88 joined #salt
11:15 sknebel joined #salt
11:17 wangofett joined #salt
11:23 amcorreia joined #salt
11:24 sh123124213 joined #salt
11:26 rebbdohr joined #salt
11:27 wangofett joined #salt
11:28 sh123124213 joined #salt
11:29 sh123124213 joined #salt
11:29 om2 joined #salt
11:29 Rumbles joined #salt
11:30 rebbdohr_ joined #salt
11:33 lorengordon joined #salt
11:35 Dehumanized joined #salt
11:35 Guest33293 left #salt
11:38 wangofett joined #salt
11:42 Trauma joined #salt
11:49 om2 joined #salt
11:55 karlthane joined #salt
12:01 dxiri joined #salt
12:02 wangofett joined #salt
12:02 fracklen joined #salt
12:03 dcpc007 hi. I have a test master on debian 7, but minions will be debian 7 and debian 8. Is it a problem ? => i think the salt version will be different mainly ...
12:03 thinkt4nk joined #salt
12:04 babilen dcpc007: Your master should be at least as new as the newest minion and you should minimise differences in versions
12:05 babilen Furthermore I wouldn't recommend to run anything on Debian 7 anymore
12:07 aldevar joined #salt
12:09 dcpc007 yes but all servers are not even on debian7, then upgrading is not planned
12:09 dcpc007 priority is to remove old servers (and here debian 7 is really recent :) )
12:09 babilen You mean you still have some bo boxes aroun?
12:09 dcpc007 mean suse 9.0 for example ....
12:09 dcpc007 sun 5.8
12:10 dcpc007 opensuse 10 / 11
12:10 dcpc007 RHEL 5
12:10 babilen My condolences
12:10 dcpc007 maybe a ubuntu 9 or 10
12:10 dcpc007 don't remember, i try to forget
12:10 dcpc007 but it's "fun" to work on a 2.4 kernel ...
12:10 dcpc007 even top is fun !
12:11 kbaikov joined #salt
12:11 dcpc007 i think i never see a top old like his :)
12:11 dcpc007 this
12:11 babilen Please do not invite me to one of your parties if that's your idea of fun ;)
12:11 dcpc007 hhé
12:11 dcpc007 and basic commands like grep has different options or default ... really fun ...
12:12 dcpc007 i always keep 2 hollyday days for the planned operation on it :)
12:12 mbologna joined #salt
12:12 babilen But more to the point: You can install recent SaltStack releases on wheezy using packages from http://repo.saltstack.com/#debian -- That should allow you to use 2016.11.5 on both jessie and wheezy boxes
12:12 dcpc007 pfff boring, i'll never have the time in planning to test upgrade debian7 to 8 even on 1 server
12:13 dcpc007 i'm trying, currently a bug on wheezy part or the repo, one package stuck... i open a case on github
12:13 dcpc007 can't install salt for test
12:15 dcpc007 E: impossible de récupérer http://repo.saltstack.com/apt/debian/7/amd64/latest/pool/main/libs/libsodium/libsodium13_1.0.3-1_amd64.deb : Taille incohérente
12:15 dcpc007 in french
12:16 dcpc007 i see old issues on github for he same problem on jessie ... seems corrected, but not for wheezy i think
12:16 zerocoolback joined #salt
12:16 dcpc007 md5sum signature problem in the salt repo if i understand
12:16 babilen You could run "LC_ALL=C apt-get install salt-minion" to get output in English. What does Taille incohérente mean?
12:16 dcpc007 incorrect size
12:17 dcpc007 think it's a difference between the package itself and the description file of package in the repo
12:17 toastedpenguin joined #salt
12:17 dcpc007 http://repo.saltstack.com/apt/debian/7/amd64/latest/pool/main/libs/libsodium/
12:23 babilen why do they have to fuck up the repo all the time?
12:23 SaltyVagrant joined #salt
12:25 impi joined #salt
12:26 zerocoolback joined #salt
12:35 ronnix joined #salt
12:35 toanju joined #salt
12:36 numkem joined #salt
12:42 edrocks joined #salt
12:43 dcpc007 don't know, i had someone asking me to move my request on the right project .. hope they'll take it quickly
12:44 dehumanized joined #salt
12:48 stooj_ joined #salt
12:48 debian112 joined #salt
12:50 edrocks joined #salt
12:50 babilen dcpc007: You'd have to file bugs against salt-pack
12:51 lorengordon joined #salt
12:53 dcpc007 yes done
12:53 GMAzrael joined #salt
12:53 dcpc007 https://github.com/saltstack/salt-pack/issues/323
12:56 rebbdohr joined #salt
12:58 tru_tru joined #salt
12:59 nicksloan joined #salt
13:02 ronnix joined #salt
13:03 debian112 joined #salt
13:03 sh123124213 joined #salt
13:06 rebbdohr joined #salt
13:06 rebbdohr_ joined #salt
13:08 XenophonF joined #salt
13:09 impi joined #salt
13:12 rebbdohr_ joined #salt
13:19 ssplatt joined #salt
13:22 jas02 joined #salt
13:23 rebbdohr joined #salt
13:24 debian112 joined #salt
13:24 jas02 joined #salt
13:25 brousch__ joined #salt
13:26 Tantagel joined #salt
13:35 mage_ what's the proper/safest way to upgrade salt?
13:36 c_g joined #salt
13:36 mage_ atm I'm running: salt "*" cmd.run "pkg upgrade py27-salt" ; upgrade the master; restart the master; salt "*" cmd.run "service salt_minion restart"
13:36 evle joined #salt
13:39 racooper joined #salt
13:43 rebbdohr joined #salt
13:46 rebbdohr joined #salt
13:46 xet7 joined #salt
13:46 rebbdohr_ joined #salt
13:47 mugsie joined #salt
13:52 sh123124213 joined #salt
14:04 candyman89 joined #salt
14:16 Rubin joined #salt
14:16 wangofett joined #salt
14:20 PatrolDoom joined #salt
14:26 wangofett joined #salt
14:26 nicksloan joined #salt
14:29 XenophonF mage_: a pkg.installed or pkg.uptodate state should trigger a minion refresh automatically; if you want the service to restart, you can add a service.running state with the pkg state as a watch requisite
14:30 XenophonF but frankly, I patch and reboot my Linux and BSD systems the same as I do with Windows
14:30 mage_ previous Salt upgrade was kinda catastrophic (I had to restart all minions one by one by hand)
14:30 mage_ I'd like to avoid it this time :)
14:31 PatrolDoom mage_: i'm still dealing w/ that due to being on ole version
14:31 * PatrolDoom wishes they could use salt-ssh to help w/ that...
14:31 babilen mage_: Current SystemD unit files address that issue
14:31 XenophonF babilen: he's using FreeBSD
14:31 babilen PatrolDoom: You can use salt-ssh
14:31 mage_ yes I'm running FreeBSD
14:31 babilen Sorry, that information was not obvious in my scrollback
14:32 mage_ previous upgrade was horribly broken because the default hash_algo changed I think
14:32 PatrolDoom babilen: i know i can, it's that my leadership is weird ... they do not like ssh based things. for some reason they find it to be "hackish" since ssh was made for logins :\
14:32 XenophonF it's the 'py27-salt' that gave him away ;)
14:33 MajObviousman PatrolDoom: that seems like an odd stance to take, since ssh -T is a thing
14:33 wangofett joined #salt
14:33 XenophonF mage_: my recommendation is to pair a pkg.uptodate state with a module.run state that calls system.reboot 1
14:33 MajObviousman and also tunneled channels? Not loginy either
14:33 PatrolDoom MajObviousman: i know i know! believe me i blinked at them profusely lol
14:33 XenophonF and then run them via orchestration
14:33 MajObviousman are you at liberty to share who "them" is?
14:33 babilen PatrolDoom: You can use the "normal" master, but salt-ssh with the cache roster is a nice backup if things go bad
14:33 PatrolDoom MajObviousman: no...
14:33 MajObviousman fair enough
14:34 PatrolDoom however ill be blarging stuff once i get to a point to do so, thus you'd be able to infer whom ;)
14:34 mage_ XenophonF: ok I'll investigate :)
14:34 mpanetta joined #salt
14:36 XenophonF mage_: https://github.com/irtnog/salt-states/commit/cc04331174f1ceb05aeecfd9a185fd3fea87a762
14:36 jas02 joined #salt
14:37 XenophonF support for freebsd-update is a WIP
14:38 babilen PatrolDoom: Does that mean that you aren't allowed to use SSH at all?
14:38 _JZ_ joined #salt
14:39 PatrolDoom heh, ssh is used. they have an issue w/ using it for automation/orchestration
14:39 PatrolDoom idk they explained why they don't like it & i'm still trying to understand that "reason"
14:40 XenophonF PatrolDoom: what's their take on PowerShell remoting?
14:40 PatrolDoom only thing i guess they may be weary about is having another "root" ssh key
14:40 PatrolDoom XenophonF: this is a *nix shoppe thankfully
14:40 XenophonF oh that's too bad ;)
14:40 PatrolDoom pfft
14:40 * PatrolDoom pokes XenophonF
14:40 XenophonF you don't have root ssh enabled, do you?
14:41 jas02 joined #salt
14:41 PatrolDoom well by "root" i mean a adminish type key
14:41 XenophonF ah
14:41 babilen PatrolDoom: I mean I understand why you might have that policy in general, but to implement it regardless of circumstances is just stupid
14:41 PatrolDoom ^ +1
14:42 PatrolDoom i'm working on a counter arguement to this, just takes some time
14:42 babilen Feel free to quite "Random guy on internet" :D
14:42 PatrolDoom this is the only place where i've had to justify much of what i do
14:42 PatrolDoom which is not bad just somewhat frustrating at times
14:42 PatrolDoom hwoever when working around smart people i guess this is what it takes
14:43 babilen PatrolDoom: Counterargument: salt is down and it would be one command via salt-ssh to get it running again. Should we be able to do it?
14:43 PatrolDoom lol, i tried to explain that but they used the argument of just logging into it. i was like well at times we have 10+ minions not responding (due to ole version) & shit i end up doing for loops from a bastion ...
14:43 PatrolDoom i do some geto things please forgive me
14:44 PatrolDoom e.g. for i in $(cat hostlist) ; do "ssh service salt-minion restart" ; done
14:44 PatrolDoom well sudo but w/e
14:45 babilen And that's okay?
14:45 PatrolDoom thats what ive said rofl >:)
14:45 PatrolDoom well idk if they realize how geto i can be at times...
14:45 arielrosver joined #salt
14:45 babilen Sounds as if you'd be forbidden to save it in a script though
14:46 wangofett joined #salt
14:46 PatrolDoom they take a very "old school" approach to things at times
14:46 XenophonF you can tell them this old schooler says it's ok to try new things
14:46 PatrolDoom ikr
14:53 Naresh joined #salt
15:01 bast joined #salt
15:02 sarcasticadmin joined #salt
15:03 mpanetta joined #salt
15:04 ronnix joined #salt
15:05 bwellsnc joined #salt
15:06 XenophonF has anyone already written their own state/exec modules for freebsd-update? i'd rather not re-invent the wheel
15:09 debian112 joined #salt
15:10 stomith joined #salt
15:10 yannj joined #salt
15:16 hoonetorg joined #salt
15:21 bast joined #salt
15:22 PatrolDoom joined #salt
15:23 zerocoolback joined #salt
15:25 jas02 joined #salt
15:33 debian112 joined #salt
15:36 om2 joined #salt
15:38 SalanderLives joined #salt
15:38 PatrolDoom joined #salt
15:42 edrocks joined #salt
15:46 rmelero joined #salt
15:47 bast joined #salt
15:55 babilen What does https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#salt.states.service.mod_watch and how would I use it to restart a service?
15:56 whytewolf mod_watch is the function called by water and listen
15:56 whytewolf s/water/watch
15:56 babilen I know, but how do I use that state?
15:56 babilen I have to restart a service explicitly
15:57 whytewolf then use module.run -> service.restart mod_watch isn't called directly
15:57 babilen Might be easier to write a state that uses the service.restart module.run
15:57 Trauma joined #salt
15:57 babilen But I was curious what mod_watch is for and why it's not private
15:58 babilen (as I would have expected to be a purely internal function)
15:59 socket- Hey all I have salt with a gitfs for master and dev. I am working on a newfeature which is commited to the dev branch and I want to be able to test it by doing something like salt '*' state.apply mynewfeature tgt=dev , but it says no matching sls found for new feature in env base. but if i push the changes to the masterbranch then it works. Is there a way to specifiy the branch from the cli?
16:01 babilen whytewolf: Why expose the function then?
16:01 whytewolf babilen: couldn't say what the design choice was behind it not being priavte except that it is called by watch and listen. which do not exist in the module.
16:01 babilen Fair enough
16:02 babilen I was about to use module.run, but stumbled over this state and (wrongfully) assumed that this would allow for calling mod_watch explicitly
16:02 babilen Bit baffled by that, but meh
16:02 babilen Shouldn't be exposed IMHO
16:03 whytewolf only reason to have the documentation is to expose what watch and listen will do with the module i expect
16:03 babilen Maybe
16:03 whytewolf there are other modules that have mod_watch but don't document it.
16:04 st8less joined #salt
16:07 Brew joined #salt
16:12 raspado joined #salt
16:16 rebbdohr joined #salt
16:16 rebbdohr_ joined #salt
16:17 irated joined #salt
16:20 bantone joined #salt
16:24 woodtablet joined #salt
16:24 rebbdohr joined #salt
16:25 jhujhiti joined #salt
16:28 chowmein__ joined #salt
16:36 SaucyElf joined #salt
16:37 Rubin joined #salt
16:42 wendall911 joined #salt
16:43 lorengordon joined #salt
16:43 rebbdohr joined #salt
16:49 edrocks joined #salt
16:50 zerocoolback joined #salt
16:55 GMAzrael_ joined #salt
17:00 rebbdohr joined #salt
17:01 rebbdohr_ joined #salt
17:02 tawm04 joined #salt
17:02 rebbdoh__ joined #salt
17:03 karlthane joined #salt
17:03 rebbdo___ joined #salt
17:06 impi joined #salt
17:11 ChubYann joined #salt
17:13 marcinkuzminski joined #salt
17:14 gmoro_ joined #salt
17:18 Cottser joined #salt
17:24 fracklen joined #salt
17:27 PatrolDoom joined #salt
17:28 vishvendra joined #salt
17:37 nicksloan joined #salt
17:39 Trauma joined #salt
17:40 PatrolDoom joined #salt
17:43 whytewolf you know what would be nice and an interesting fix to an age old salt problem. if the pillar dict existed in pillar. but held last runs data. allowing for a kind of bootstrap paradox for configuring pillars.
17:44 major ...
17:44 major my head esplode
17:45 whytewolf hehe. good that is a proper response
17:45 whytewolf it actually is a horrible idea
17:49 jmedinar joined #salt
17:54 jmedinar joined #salt
17:54 jmedinar_ joined #salt
17:55 SalanderLives joined #salt
17:56 smkelly_ left #salt
17:57 dxiri joined #salt
17:58 mikecmpbll joined #salt
17:58 XenophonF socket-: you need to use saltenv=dev not tgt=dev
17:58 XenophonF for example i have https://github.com/irtnog/salt-states, which has 5 branches - master, development, testing, staging, and production
17:59 XenophonF if i'm on a production system and want to deploy something from the staging branch, I would use `salt-call state.apply sls-id saltenv=staging`
18:01 major so what if you want to use alternate branches but still be in a staging or development environment?
18:01 ujjain joined #salt
18:01 ujjain joined #salt
18:02 XenophonF the branch names themselves are only meaningful to humans such as ourselves
18:03 major exactly, but I as a developer have my changes in a topic branch and would like to use that topic branch, but I want to drag in the rest of the dev environment
18:03 XenophonF i tend to selectively override states
18:03 XenophonF i run state.apply with no arguments to lay down the initial config
18:04 XenophonF and then i run state.apply something,something,something saltenv=branchname to get just the one's i'm working on
18:04 major hmmm
18:05 PatrolDoom joined #salt
18:07 jmedinar Is it possible to give a parameter at the command line while executing a state?
18:07 PatrolDoom joined #salt
18:08 XenophonF jmedinar: broadly speaking, yes, but the Devil is in the details - what precisely are you trying to do?
18:10 stomith joined #salt
18:11 mpanetta joined #salt
18:16 Cottser joined #salt
18:16 overyander joined #salt
18:17 jmedinar I am trying to specify a simple variable like start/stop ... so in the state by knowing that a single command changes but all other verifications are the same
18:18 jmedinar for example: salt minion state.sls apache start
18:18 jmedinar for example: salt minion state.sls apache stop
18:19 Cottser_ joined #salt
18:19 jmedinar that's just a simplified example I am trying to accomplish a lot more but if something like that is possible will be very helpful
18:19 XenophonF well, to answer your question, you can specify Pillar data on the command line, and so pass data to the renderer in that manner, which would then alter the state data accordingly
18:19 XenophonF e.g., `salt-call state.apply pillar='{"comanage": {"registry": {"tag": "1.0.6", "cron_cmd": "scl enable httpd24 rh-php56 -- bash ./Console/cake cron -q"}}}'
18:20 XenophonF `
18:20 XenophonF the above overrides existing pillar data, causing a particular SLS to behave differently
18:21 jmedinar so I set a dummy value on the pillar that will overwrite with what I really want on every execution ?
18:21 XenophonF (in my case I'm deploying an older version of COmanage Registry using the above command, and then re-running state.apply to kick off the upgrade)
18:21 XenophonF sure
18:21 PatrolDoom joined #salt
18:22 XenophonF or you could have a sensible default that DTRT except when you need to override it, as I have with my comanage.registry SLS
18:22 XenophonF it kind of sounds like you're abusing the state system, though
18:22 jmedinar yes probably. I think is not the correct approach
18:23 jmedinar thanks XenophonF
18:23 XenophonF NP!
18:25 GMAzrael joined #salt
18:25 smkelly joined #salt
18:26 GMAzrael joined #salt
18:30 censorshipwreck joined #salt
18:35 rav_ joined #salt
18:39 feliks joined #salt
18:41 Cottser joined #salt
18:50 PatrolDoom dynamic pillars, hrm
18:53 PatrolDoom heh https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.mysql.html#module-salt.pillar.mysql
18:53 * PatrolDoom cries in a corner
18:54 whytewolf why?
18:54 PatrolDoom cause queries look like a lot of work
18:55 whytewolf ... never been a DBA have you?
18:55 PatrolDoom i mean i can def do it, sql is simple
18:55 PatrolDoom as long as i dont have to do joins :)
18:55 major hah
18:55 rmelero what about a pillar roulette plugin? it randomly picks a table to fill your pillar with
18:56 whytewolf joins are simple it is grouping that is a pain and killer to performence
18:56 major module.salt.pillar.markovchain?
18:57 whytewolf module.salt.pillar.ah_fuck_it
18:57 schemanic joined #salt
18:57 nixjdm joined #salt
18:57 whytewolf just returns null value for any pillar requests
18:58 major almost more fun to return a random selection of the current top-100 most popular tweets
18:58 rmelero or how about a quantum state? It can be no state, 1 of 2 states, both states, or all options at once and you can never know which one it is
18:59 whytewolf rmelero: only if it has an entanglement feature that if it comes up as 1 state then another pillar being returned at the same time to another minion will be 2
18:59 major run a simulation of a soloton using the madelung equation and return its current state whenever queried?
19:00 rmelero lol physics doesn't belong in some places
19:00 major reality is nothing but physics ;)
19:01 whytewolf only on the macro level. the micro level shit gets weird.
19:01 major depends on which theory you subscribe to I guess
19:02 toanju joined #salt
19:03 whytewolf a personal version of copenhagen
19:03 rav_ joined #salt
19:04 GMAzrael joined #salt
19:05 major once I found out that the schroodinger equation isn't entirely valid .. that it is more of a linear equation to be used to simplify the overall problems .. and that there was a more reobust representation called the madelung equation .. I sort of revisited John Bell's proof that Bohm and de Broglie's equations make all the same predictions as the coppenhagen interprettation .. and so ones choice as to which to
19:05 major believe in is more a reflection of ones self than it is reality.  they are all equally valid in that they are mathematically equivilent ... kinda surreal
19:07 edrocks joined #salt
19:07 major more interesting now that they have reconfirmed surreal trajectories and non-locallity .. technically valid in coppenhagen and bohm-debroglie .. but very much made explicit in the bohmian view
19:07 major anyway .. off topic
19:07 major heh
19:09 schemanic Hello, I'm working with the ipset state module documented here: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ipset.html
19:10 schemanic I've noticed that the set creation states list '- comment: True' as an option
19:10 whytewolf my condolences schemanic
19:10 schemanic whytewolf, haha why?
19:10 whytewolf cause i have never heard good things about the module
19:10 whytewolf mostly a lot of cussing
19:11 schemanic whytewolf, yeah I got myself all trained up on firewalld and found out Amazon linux didnt support it. I was sad
19:11 schemanic the firewalld formula is quite sensible
19:11 schemanic well
19:11 whytewolf yeah amazon linux is a bastardization of centos 6. firewalld was introduced in redhat 7
19:12 schemanic my problem with ipset is that the doc seems to state that '- comment' is a thing, but salt is belching that 'unknown option : 'comment' '
19:12 schemanic with iptables, the kwargs are the long options for the iptables command itself
19:12 schemanic but there's no clarification either way with ipset
19:13 schemanic whytewolf, anyone else, can someone perhaps help me find what options ARE the kwargs?
19:13 kulty joined #salt
19:15 whytewolf schemanic: well. what version of salt are you running?
19:16 schemanic 2016.11.5
19:16 whytewolf let's start there
19:16 * PatrolDoom has no clue on these new firewalls :'(
19:16 whytewolf ok 41 refferences to comment in salt.state.ipset
19:16 whytewolf most of the references look to be setting comment for output
19:17 whytewolf although looks like present and absent do look for the kwargs for comment
19:17 whytewolf https://github.com/saltstack/salt/blob/v2016.11.5/salt/states/ipset.py#L205-L206
19:18 whytewolf which gets passed to ipset.check module function
19:19 ronnix joined #salt
19:19 schemanic im looking in set_present
19:19 schemanic i dont understand
19:21 schemanic Am I crazy that it seems to say you can pass a comment to set_present?
19:21 schemanic because salt is telling me no
19:21 whytewolf what exactly is the error you are getting?
19:23 whytewolf and yes what i am reading does mean it should work
19:24 schemanic https://gist.github.com/devinnasar/6f96205720aa4bc21562dd81cd626d8c
19:24 whytewolf it just passwes the kwargs on to salt.modules.ipset.new_set which should fill in comment
19:24 karlthane joined #salt
19:24 schemanic also now the system does not appear to be getting changes
19:24 rmelero amazon linux: https://www.youtube.com/watch?v=-K7fCQlUhj0
19:26 whytewolf schemanic: that looks to me like ipset itself refused the comment
19:26 schemanic I see
19:26 schemanic okay
19:26 schemanic so now I have a different problem
19:26 schemanic I've made changes to my state to remove the comment argument
19:26 schemanic and i run a fileserver.update
19:27 schemanic and a saltutil.sync_all
19:27 schemanic but when I re-run state.apply iptables, the system thinks I've still passed it the comment argument
19:27 schemanic what gives?
19:27 whytewolf sync_all shouldn't be needed.
19:27 whytewolf and double check that it is correct in your repo
19:28 whytewolf i know we have been seeing a plague of repos that are not updating recently
19:28 dyasny joined #salt
19:28 schemanic you mean like, my push actually doesn't show up in bitbucket?
19:28 whytewolf yeap
19:29 schemanic Wow yeah thats its
19:30 whytewolf it is always bitbucket also :/ atlassian used to have a pretty decent product i don't know what happened
19:31 mpanetta joined #salt
19:33 rmelero use gitlab, it's been better for a while and free private repos
19:33 Trauma joined #salt
19:33 rmelero you could host ur own as well
19:33 * whytewolf shrugs. I have free unlimited private repos with github
19:34 rmelero github is pretty dope too
19:34 schemanic rmelero, this is our company stuff, I have almost no say in the amazon linux or git hosting thing
19:34 major file a bug w/ atlassin?
19:34 whytewolf ^
19:35 whytewolf they are normally pretty reasonable about fixing things and getting to the bottom of issues
19:35 whytewolf least they used to be. i havn't had an issue with them in a long time to know if they are currently as on the ball
19:37 schemanic OMG
19:37 schemanic okay whytewolf get this. its NOT an atlassian problem
19:37 schemanic it's an ATOM problem
19:37 whytewolf ?
19:37 whytewolf what? atom  isn't pushing?
19:37 schemanic so when you go file > save as, atom creates the new file, but it leaves the old file on your screen
19:37 PatrolDoom heh, vim doesn't ;)
19:38 schemanic yeah yeah
19:38 whytewolf hehe
19:38 schemanic so I'm sitting here dumbfounded because I've pushed and pushed
19:38 PatrolDoom schemanic: having issues w/ salt & git repos?
19:38 schemanic and i notice that my old file is still there next to my new file
19:38 PatrolDoom may want to clear cache
19:38 schemanic PatrolDoom, no. It's not that
19:38 PatrolDoom oh nvm Atom... poor dude
19:38 schemanic It looked like that, but it wasnt
19:38 PatrolDoom uh use vim ;p
19:38 schemanic NO
19:39 rmelero you should be echoing your files line by line
19:39 schemanic ...
19:39 PatrolDoom well you seem like a nano person
19:39 PatrolDoom ;P
19:39 whytewolf psh, you can never be sure unless you are twiddling the inoes with a magnet
19:39 rmelero hehe sometimes
19:39 schemanic I use vim when I'm in the server futzing with things
19:39 whytewolf s/inoes/inodes
19:40 schemanic yeah, ugh so atom has this very subtle way of doing it's 'Save As' which makes you think you're editing the new file and not the old one.
19:41 lorengordon joined #salt
19:41 PatrolDoom :saveas bbq
19:41 * PatrolDoom throws more vim their way
19:41 PatrolDoom quit and restart the app lol
19:42 whytewolf :w omgwtfbbq
19:43 rmelero :^Cquit^Cquit^Cquit^C
19:43 whytewolf :Z
19:44 Trauma joined #salt
19:44 edrocks joined #salt
19:45 Tantagel joined #salt
19:46 Tantagel joined #salt
19:46 dstensnes in a state, how can i have a conditional cmd.run if a line is missing in a file?
19:46 dstensnes i found file.search, but not sure how to apply it
19:47 schemanic and goddamnit, Amazon's ipset is 6.16. ipset itself is at 6.30
19:47 dyasny joined #salt
19:47 schemanic so comments aren't available
19:47 schemanic what the damn hell
19:47 whytewolf um... onlyif: grep 'line in file' <file>
19:47 whytewolf I think
19:47 dstensnes is that really the best
19:47 dstensnes okay
19:48 whytewolf schemanic: welcome to amazon linux ...
19:51 schemanic whytewolf, sigh. I wish we would just move to CentOS 7
19:52 whytewolf schemanic: that is purely your companies call as i KNOW aws supports it
19:52 whytewolf and has images
19:52 schemanic I know that
19:53 schemanic It's that they built the product on AWS Linux
19:53 whytewolf maybe even soda and pie
19:53 schemanic and they're scared to move to CentOS
19:53 whytewolf this is what testing is for.
19:54 schemanic I'm tempted to salt up a CentOS box and have them test on that since this is the first round of salted infrastructure we're moving to
19:54 schemanic and then just not tell them
19:54 whytewolf yeah, the not telling part i have problems with
19:54 whytewolf I have nightmares about sitting in the office for 24 hours because a dba made changes and didn't tell anyone
19:55 schemanic whytewolf, I wouldnt really do that. I'm just saying the consensus seems to be 'AWS Linux has been fine so don't change it.'
19:55 schemanic it's just fun to fantasize about tricking my team into doing something the right way
19:55 schemanic but all should be in the light and of good faith
19:55 whytewolf oh i get the it isn't broke so why fix it mentality
19:56 rmelero just build up your own os from scratch http://www.includeos.org/
19:56 PatrolDoom whytewolf: DBAs != sysadmin's
19:56 * PatrolDoom pokes whytewolf
19:56 schemanic The issue is really that we have me alone doing all of our company's DevOps, ITOps, NetSec, and Helpdesk
19:56 whytewolf PatrolDoom: very true. but DBA's controll the database and that is what they made  achange on that broke the .. database
19:56 PatrolDoom :|
19:56 PatrolDoom heh
19:57 schemanic we have 2 QA people who are working on mostly frontend stuff
19:57 schemanic so we're thinner than cellophane
19:57 schemanic I've also taught myself everything I know so far. I went to art school
19:57 whytewolf yikes.
19:58 whytewolf although to be fair. I tought myself everything i know also. I dropped out of highschool. :P
19:58 Aleks3Y joined #salt
19:58 schemanic <-- dropped out of art school to run ops at an animation studio
19:59 schemanic Yes. I like to think I know the right direction for us to go in, but its more like my company makes me split my time between the afforementioned functions, and it's not enough to ensure the environment is stable
19:59 schemanic Right now I'm learning salt to try and close some of that gap
19:59 schemanic WOOT my firewall states work
19:59 edrocks joined #salt
19:59 schemanic Thanks whytewolf, et al
19:59 whytewolf no problem. :)
20:00 bast joined #salt
20:00 bast joined #salt
20:01 PatrolDoom schemanic: well .. you seem learnable so if you do need help feel free to ask whytewolf for it ;o
20:01 * PatrolDoom can help in other ways
20:01 nixjdm joined #salt
20:01 whytewolf lol
20:01 schemanic Thanks PatrolDoom. I appreciate how forthcoming and helpful the community has been
20:03 Taters_ joined #salt
20:04 PatrolDoom joined #salt
20:07 PatrolDoom dammit power went out on laptop
20:08 PatrolDoom i need to enable hibernate
20:13 lazybear joined #salt
20:15 aneeshusa joined #salt
20:16 CeBe joined #salt
20:16 wonko21 joined #salt
20:18 icebal joined #salt
20:31 SaucyElf joined #salt
20:39 spicyJalapeno joined #salt
20:40 amcorreia joined #salt
20:40 DammitJim joined #salt
20:40 sp0097 joined #salt
20:45 raspado joined #salt
20:46 hashwagon joined #salt
21:00 nixjdm joined #salt
21:04 c_g joined #salt
21:12 pbandark joined #salt
21:25 wangofett joined #salt
21:31 wangofett joined #salt
21:41 Tantagel joined #salt
22:01 keldwud joined #salt
22:01 nixjdm joined #salt
22:02 Trauma joined #salt
22:04 major is there any way to merge pillar data in with the default data to make certain the pillar data is handled first.. or is that something that has to be done by simply ittertating over one before the other?
22:13 edrocks joined #salt
22:14 Sokel joined #salt
22:16 Sokel Hi. Is there documentation or a page that explains how to migrate masters? I have transfered all /etc/salt and /srv/* directories over, but salt-key shows no clients. I would think that there'd be some place or data that would have a list of all the hosts registered to salt that salt-key manages. Did I miss something?
22:17 nixjdm joined #salt
22:17 rmelero minions should register on the new host. have you flipped ips yet?
22:19 Sokel No, I haven't done that just yet. I was under the impression all the client keys would just show up without them having to connect to the master yet. But I suppose I'm mistaken.
22:19 nicksloan joined #salt
22:20 rmelero I believe it is possible, but don't think you could test since minions would need to have the correct ip for the master regardless
22:22 rmelero this uses reclass, but it's doing basically that https://github.com/salt-formulas/salt-formula-salt/blob/master/salt/master/minion.sls
22:23 whytewolf Sokel: /etc/salt/pki/master/* is the keys location. did that get copied over?
22:24 Sokel whytewolf: Yes. All of that is copied over.
22:25 whytewolf only other space to copy would be /var/cache/salt/master/*
22:26 Sokel Right, that was copied too.
22:26 Sokel I suppose it doesn't really matter, I was just confused as to why nothing was showing up.
22:26 jas02 joined #salt
22:48 wwalker I have 5 salt masters.  originall all 5 gave what I call terse output.  Now 3 of them give a wordy output where every other line is -------- and each lin has one variable on it.  The terse format is like Name: sup-down - Function: service.dead - Result: Clean Started: - 21:46:56.603168 Duration: 12.54 ms
22:49 wwalker I've tried and tried but I can't find a --out or --state-out that will get me the terse output again on the 3 that changed, and I can't figure out what changed the output.
22:50 wwalker Any idea what I'm overlooking?  I'm running 2016.3.3
22:54 whytewolf state_output: terse
22:54 whytewolf ?
22:54 whytewolf check https://docs.saltstack.com/en/latest/ref/output/all/salt.output.highstate.html#module-salt.output.highstate
22:54 whytewolf maybe filter
22:57 whytewolf you could also check the other masters config file for the value of output and state_out
22:59 whytewolf it is also possable you had a custom outputer
23:00 wwalker all the master config are identical except for branches in the gitsfs defs.  --state_output=terse sounds like what I want but it doesn't change the output.
23:01 whytewolf make sure output is highstate other wise state_output is useless
23:01 cyborg-one joined #salt
23:13 sh123124213 joined #salt
23:16 Sokel left #salt
23:16 wendall911 joined #salt
23:20 Shados joined #salt
23:22 aneeshusa joined #salt
23:43 wangofett joined #salt
23:43 hemebond joined #salt
23:45 wendall911 joined #salt
23:46 masber joined #salt
23:51 irated joined #salt
23:53 mosen joined #salt
23:54 wangofett joined #salt
23:59 brucewang left #salt
23:59 __number5__ joined #salt

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