Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-01-09

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

All times shown according to UTC.

Time Nick Message
00:00 Snicers show_sls works, I see nothing about port though
00:03 whytewolf well, right now it looks like your minion has 0 info from your mysql pillar.
00:04 whytewolf so state data [show_sls] really is kind of a red herring
00:04 disposable joined #salt
00:06 whytewolf what is the full output of salt 'Minion-Salt' test.ping
00:07 L2SHO_ joined #salt
00:08 Snicers Salt-Minion:     True
00:09 Snicers I think I got it working
00:09 PeterO joined #salt
00:10 Snicers salt 'Salt-Minion' pillar.get mysql now returns stuff (including port) but the highstate doesn't implement that.
00:11 whytewolf is there any errors or changes reported by the highstate when it is run?
00:13 Snicers Nope, all is well.
00:13 Snicers But I am not seeing any mysql related states
00:14 Snicers Do I need something in my states folder to tell mysql to install?
00:14 frew is salt.pillar.get the same as salt['pillar.get'] ?
00:14 Snicers That would be my salt folder I mean.
00:14 whytewolf frew: yes
00:14 frew whytewolf: then why does anyone ever use the bracketed version?
00:15 whytewolf frew: because most everyone is from before the change that allow for salt.module.function.
00:15 frew ok
00:15 frew thanks
00:16 whytewolf Snicers: https://github.com/saltstack-formulas/mysql-formula/tree/8a59137dc42281c20fb848616f3efcc3543a5001#available-states that list of states is meant for your top.sls in your statetree. [using only the ones you want of coarse]
00:17 Snicers The top.sls in the pillars folder or the top.sls in the salt folder?
00:17 whytewolf state tree
00:17 Snicers ok
00:17 whytewolf which would be your salt folder
00:17 Snicers so what goes in the pillar?
00:17 whytewolf the pillar data you already setup
00:17 subcache joined #salt
00:20 Snicers So would this install the mysql server? mysql:   - mysql.server
00:20 Snicers https://gist.github.com/anonymous/7760c79dafe3ed2f50f2
00:21 whytewolf um. I have no idea WHERE you put that little snipet. but it doens't look like a state.top file
00:23 whytewolf Snicers: https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#including-a-formula-from-a-top-file
00:24 Snicers https://gist.github.com/anonymous/1669f273b62fe929f327
00:24 murrdoc1 joined #salt
00:24 Snicers I had it without the .server before.
00:25 penguinp1wernz joined #salt
00:25 whytewolf with out the .server should be fine as long as you have actualy already setup file_roots to import that formula
00:26 Snicers whytewolf: like this? https://gist.github.com/anonymous/dee1e00765bb4b797a22
00:26 Snicers that is in my /etc/salt/master
00:28 whytewolf in thoery yes. you also restarted the salt master after putting in that change?
00:28 Snicers yea
00:28 whytewolf you also have pygit2 installed?
00:29 Snicers yea
00:29 whytewolf or what ever the current python git lib is
00:29 Snicers now I am getting this: https://gist.github.com/anonymous/cda90616ce0e24daa54b
00:32 frew so I wanted all of my pkg.insatlled commands to require apt-get update to run first, so I put -require_in: - pkg: *
00:32 frew but that's not valid
00:32 frew can what I'm thinking even be done?
00:32 frew I thoguht it worked but I was wrong
00:33 * frew tries quoting the *
00:33 whytewolf Snicers: omg. sorry you just ran into why this is a bad formula. instead of actually using a map.jinja file to determine the service name. it relys on you knowing it and putting it in the pillar
00:33 whytewolf frew: you want to pkg.uptodate?
00:33 frew nope
00:34 Snicers I see that now.
00:34 frew well, pkg.installed, pkg.updtodate, etc
00:34 whytewolf frew: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.uptodate
00:34 whytewolf literally pkg.uptodate
00:34 frew erh, no that's not what I Mean
00:35 Snicers k, done with this for now, I am going home.
00:35 frew but lemme fix this so it uses uptodate
00:35 frew sec
00:35 whytewolf ohhhhhh. um yeah i think the globbing in require is a little sloppy
00:35 Snicers People need to write better formulas...
00:35 frew oh I don't want up to date, I *just* want to refresh the package database
00:36 frew I could have sworn require_in: - pkg: * worked, but it is not working now
00:36 penguinp1wernz joined #salt
00:36 Snicers thanks for your help whytewolf
00:37 whytewolf Snicers: honestly it is a problem of trying to get a fit all situtation and honestly it is why i don't use formulas at all because writing your own states is much leaner.
00:37 whytewolf frew: so you just want - refresh: True
00:37 whytewolf ?
00:37 whytewolf Snicers: no problem
00:37 Snicers I will keep that in mind. Was just trying to be rapid, big mistake lol.
00:37 frew whytewolf: well and I don't want it to do any updates
00:37 frew I waht whatever means `apt-get update` # not upgrade
00:38 frew and I want to make all pkg.installed things depend on that
00:39 whytewolf frew: in your pkg.installs, add - refresh: True
00:39 frew so there's no way to tie the ID's together?
00:39 frew I mean, I Can do that but there are a lot already
00:39 frew I was hoping to be able to just use require_i
00:39 frew n
00:40 whytewolf but .... the apt-get update isn't a function it is just a option
00:41 whytewolf maybe a module.run with pkg.refresh_db
00:43 whytewolf but I'm not sure about require globbing being able to handle a *
00:43 whytewolf [well just a *
00:43 whytewolf ]
00:44 whytewolf but really salt pretty much has this functionality already built in
00:45 frew you mean by adding the - refresh: True option to the pkg.install commands?
00:45 APLU joined #salt
00:45 frew I'll have to see, I don't want to literally do it for every package, I just want to do it once per run
00:46 whytewolf no i mean by leaving off the - refresh compleatly. unless it changed recently it used to run an apt-get update when it ran into the first pkg.install
00:46 frew orly?
00:46 frew I'll check and see
00:46 whytewolf i could be wrong about that
00:46 frew I can do salt.grains.filter_by right?  don't need to use the dict syntax?
00:47 whytewolf correct
00:47 frew great
00:47 frew nice task for end of the week
00:47 frew make everything prettier :)
00:48 whytewolf but only 2014.7.0 or higher compatiable :P
00:48 whytewolf https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html#calling-salt-functions
00:48 frew we're on 2015.8.1
00:48 whytewolf i was making a joke
00:48 frew ok
00:48 whytewolf a bad one but it was a joke
00:48 frew well you never know
00:49 frew some people stick to what works right?
00:49 frew whytewolf: so does grains.get('foo:bar') work too?
00:49 frew or do you have to go through salt?
00:50 whytewolf well. grains.get I think works but that isn't universal. I would stick to always adding the salt in
00:50 frew ok
00:51 whytewolf i think the grains.get working is a byproduct of grains['grainkey']
00:51 blckbit10 joined #salt
00:51 geekatcmu So, in the Puppet world, I could trivially create a "user type" that could then be called with parameters to do precisely the same things with slightly different values.
00:52 geekatcmu Is there a salt equivalent of that?
00:55 notnotpeter joined #salt
00:55 iggy looping over pillar data?
00:57 geekatcmu So, let me give you an example.
00:57 geekatcmu I need to be able to install, for instance, some number of JVMs.
00:57 geekatcmu I literally have people that need openjdk7, oraclejdk6, and maybe an 8.
00:58 geekatcmu What we have now is a state for each version.
00:58 iggy aren't 6 and 7 eol'ed?
00:58 geekatcmu irrelevant
01:00 geekatcmu So I've got 4 Oracle JDK states (6,7,8,9) where the states differ only by 3 characters (e.g. three isntances of oracle9 versus oracle8)
01:01 geekatcmu Which feels freaking *stupid*
01:01 lompik joined #salt
01:01 geekatcmu I've got all the actual packages in a map, so the lookup per OS is trivial.
01:02 schone joined #salt
01:02 schone hello
01:02 schone how does one install the ‘boto_elb’ module?
01:02 geekatcmu But I wouldn't even being to know how I could do this.
01:03 iggy schone: it's in 2014.7 and up... you don't need to "install" it
01:04 iggy schone: you may however need to install boto (and possibly some other deps) to enable it
01:04 schone got ya
01:04 schone iggy: in that case, how do I easily upgrade my salt cluster wide without having the states restarted
01:06 iggy schone: so you are on something older than 2014.7?
01:07 schone yes
01:07 schone iggy: yes
01:07 iggy ouch
01:07 schone 2014.1.13
01:07 iggy it's not going to be an easy upgrade
01:08 schone got ya
01:09 schone perhaps ill just live without boto_elb and install the aws cli myself and run commands thru that
01:09 schone easier than the hassle fo upgrading salt
01:09 yomilk joined #salt
01:10 iggy you might be able to grab the boto* modules/states from a new version and throw them in /srv/salt/{_states,_modules}
01:16 otter768 joined #salt
01:36 scc joined #salt
01:39 schone thats an idea
01:39 schone but in the mean time i have a different question
01:39 schone iggy:
01:39 schone iggy: it seems that one of my minions has a corrupt or bad MergeList of apt-get as i get the following error trying to install python-pip with pkg.installed
01:40 schone E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/us-name-of-repo_ubuntu_dists_trusty-updates_main_i18n_Translation-en, E:The package lists or status file could not be parsed or opened.
01:40 schone and doing refresh: True doesn’t seem to solve anything...?
01:44 baweaver joined #salt
01:48 dancat joined #salt
01:51 onlyanegg I'm having trouble understanding how to define roles in the pillar.
01:51 disposable joined #salt
01:52 onlyanegg I want to be able to define roles to arbitrary servers, and I don't want to have to change the minion config.
01:55 onlyanegg It seems against the mantra of config management to have to manually change a file for each new server that you bring up.
01:55 onlyanegg Can anyone help me understand?
02:02 joejoba joined #salt
02:05 ageorgop joined #salt
02:07 AdamSewell joined #salt
02:08 snarfy onlyanegg, that's what the top file is for
02:10 ajw0100 joined #salt
02:13 milkyray joined #salt
02:17 tmclaugh[work] joined #salt
02:18 catpigger joined #salt
02:23 jalbretsen joined #salt
02:23 digitalhero joined #salt
02:24 larsfronius joined #salt
02:29 colegatron joined #salt
02:30 racooper joined #salt
02:35 ryau joined #salt
02:38 digitalhero joined #salt
02:38 ryau_ joined #salt
02:41 ryau joined #salt
02:46 rem5 joined #salt
02:46 writtenoff joined #salt
02:46 ryau__ joined #salt
02:46 om joined #salt
02:50 ryau joined #salt
02:52 beardedeagle joined #salt
02:53 yomilk joined #salt
02:54 bhosmer joined #salt
03:01 dober- joined #salt
03:03 yomilk joined #salt
03:03 quasiben joined #salt
03:04 stillLotR joined #salt
03:04 ScoreUnder joined #salt
03:05 cwright_ joined #salt
03:05 dthorman_ joined #salt
03:06 rem5 joined #salt
03:10 georgemarshall_ joined #salt
03:11 indispeq_ joined #salt
03:17 otter768 joined #salt
03:19 stevej99 joined #salt
03:20 catpigger joined #salt
03:22 hax404 joined #salt
03:22 harkx joined #salt
03:22 dabb joined #salt
03:22 tkharju joined #salt
03:22 Eureka70_ joined #salt
03:22 wendall911 joined #salt
03:22 koomi joined #salt
03:22 Azid joined #salt
03:22 twork joined #salt
03:22 rory joined #salt
03:22 jvv joined #salt
03:22 sinh joined #salt
03:22 cwyse joined #salt
03:22 Micromus joined #salt
03:22 nomad_fr joined #salt
03:22 mage_ joined #salt
03:22 ws2k3 joined #salt
03:22 LeProvokateur joined #salt
03:22 a7p joined #salt
03:22 colinstgeorge joined #salt
03:22 Gareth joined #salt
03:22 rickflare joined #salt
03:22 aRkadeFR joined #salt
03:22 dandelo joined #salt
03:22 pprkut joined #salt
03:22 admgre joined #salt
03:22 hypnosb joined #salt
03:22 daschatten joined #salt
03:22 rofl____ joined #salt
03:22 Edur joined #salt
03:22 digitalhero joined #salt
03:22 intel joined #salt
03:24 roock joined #salt
03:25 upb joined #salt
03:25 erjohnso joined #salt
03:26 copelco joined #salt
03:26 hacks joined #salt
03:34 dancat joined #salt
03:39 rihannon1 joined #salt
03:40 devtea joined #salt
03:47 larsfronius joined #salt
03:51 stanchan joined #salt
03:59 tehsu joined #salt
04:02 malinoff joined #salt
04:06 Bryson joined #salt
04:21 akhter joined #salt
04:30 beardedeagle joined #salt
04:30 colegatron joined #salt
04:38 brianfeister joined #salt
04:42 quasiben joined #salt
04:47 TimMc joined #salt
04:59 lompik joined #salt
05:04 antpa joined #salt
05:05 subsignal joined #salt
05:05 TimMc As someone who is really sick of Chef... what do you, as a Salt user, hate most about Salt?
05:05 TimMc I'm trying to figure out which tool is the least worst for configuring and deploying servers.
05:11 beardedeagle I use puppet, chef, and salt at work and salt by far requires the least amount of configuration as well as LoC. At least for me and what I do.
05:12 beardedeagle It is also the most flexible in terms of what I an accomplish
05:12 beardedeagle but then I am far better with python that I am ruby so that could explain a lot.
05:13 TimMc *nod* I think I am partly just fed up with Ruby. It's hard to tell the difference between Ruby and Chef problems when I am not super familiar with either.
05:14 beardedeagle Could be worse, I can't make heads or tails of puppet errors half the time.
05:15 beardedeagle since they use there sudo ruby / not ruby language
05:16 TimMc So the config is done in YAML -- is there breakout into Python when you need complexity?
05:17 beardedeagle it is rare that I have to break out to python, mainly to implement some obscure functionality that doesn't yet exist in current or non existing code. mostly salt allows me to accomplish what I need to with what is provided.
05:17 TimMc It always happens eventually, though. :-)
05:18 otter768 joined #salt
05:19 beardedeagle Yeah, but it is fairly simple to drop to code when needed.
05:20 neogenix joined #salt
05:20 TimMc Excellent. I'll definitely take a look at this.
05:21 TimMc I'm still curious though... what's the most frustrating thing about it in actual usage?
05:22 bastiandg joined #salt
05:22 TimMc e.g. with Chef the repeatability is good but the reliability is bad, and the development cycle is measured in too many minutes.
05:23 writtenoff joined #salt
05:23 beardedeagle tbh I am too much of a fanboy to be able to answer that
05:25 beardedeagle I will say they are some gotcha's when upgrading around salt-cloud and nova that were a pain in the ass.
05:26 colegatron joined #salt
05:28 beardedeagle ie, upgrades are rather touchy from time to time. but that is to be suspected.
05:29 TimMc *nod*
05:30 TimMc Well, I'll stick around in case someone wnats to share their pet gripes. :-P
05:30 writtenoff joined #salt
05:31 TimMc (Someone came into #clojure and asked a similar question and I rather liked it -- something along the lines of "all languages suck, tell me how *this* one sucks")
05:35 lemur joined #salt
05:46 iggy TimMc: depends what you are doing... at current job my gripes all revolve around inheriting a horrendous mess of jinja
05:47 iggy at $job-- I hated orchestration/runners always having weird issues and almost 0 docs
05:48 iggy other times it's been lack of solid examples (although I think that's less of an issue these days)
05:49 writtenoff joined #salt
06:09 rem5 joined #salt
06:25 MTecknology iggy: Are you trying to claim that jinja can get messy?
06:26 iggy I'd say ask murrdoc how bad it is, but I think he wrote a bunch of it
06:27 MTecknology really?
06:27 MTecknology You're following his role in the same company or?..
06:28 iggy no... I don't really do salt stuff that much at new job
06:28 MTecknology oh
06:28 MTecknology "at current job my gripes all revolve around inheriting a horrendous mess of jinja" ~"blame murrdoc" ... I'm confused!!!
06:29 iggy well... I'm a "user" now... not a developer
06:29 iggy doesn't mean I don't look at it and cringe
06:30 iggy but realistically, look at some of the formulas for shining examples of ass ugly jinja
06:33 anmol joined #salt
06:34 brianfeister joined #salt
06:37 malinoff joined #salt
06:41 MTecknology iggy: ah, okay
06:41 disposable joined #salt
06:42 MTecknology Ya, I avoid the piss out of formulas. Surprisingly, chef contrib recipes are *way* worse
06:45 anmol joined #salt
06:56 bhosmer joined #salt
07:00 felskrone joined #salt
07:02 yomilk joined #salt
07:07 subsignal joined #salt
07:11 rem5 joined #salt
08:00 DanyC joined #salt
08:05 writtenoff joined #salt
08:20 felskrone joined #salt
08:23 brianfeister joined #salt
08:32 DanyC joined #salt
08:38 yomilk joined #salt
08:43 yomilk joined #salt
08:44 evle joined #salt
08:46 brianfeister joined #salt
09:10 subsignal joined #salt
09:15 wych joined #salt
09:16 akhter joined #salt
09:20 otter768 joined #salt
09:32 yomilk joined #salt
09:34 jasonrm joined #salt
09:35 slav0nic joined #salt
09:38 Fiber^ joined #salt
09:46 av_ joined #salt
09:55 linjan joined #salt
10:13 keimlink joined #salt
10:19 sgargan joined #salt
10:29 san-tus joined #salt
10:55 sgargan joined #salt
10:58 bhosmer joined #salt
11:01 ryau joined #salt
11:02 Crazy67 joined #salt
11:08 ryau_ joined #salt
11:12 rem5 joined #salt
11:12 jasonrm joined #salt
11:12 subsignal joined #salt
11:14 shiriru joined #salt
11:14 blckbit10 joined #salt
11:20 yomilk joined #salt
11:20 otter768 joined #salt
11:25 evle1 joined #salt
11:33 colegatron joined #salt
11:38 felskrone joined #salt
11:52 Jimlad joined #salt
12:11 amcorreia joined #salt
12:12 LondonAppDev joined #salt
12:16 blckbit10 joined #salt
12:28 blckbit10 joined #salt
12:28 ryau joined #salt
12:31 ryau__ joined #salt
12:33 abednarik joined #salt
12:36 Theo joined #salt
13:13 rem5 joined #salt
13:14 subsignal joined #salt
13:17 HardWall joined #salt
13:21 otter768 joined #salt
13:30 rem5 joined #salt
13:44 LondonAppDev__ joined #salt
13:46 linjan joined #salt
13:49 blckbit10 joined #salt
14:14 abednarik joined #salt
14:23 rem5 joined #salt
14:27 yomilk joined #salt
14:28 TimMc Ah, jinja doesn't look too bad for what we do -- our templating needs are pretty minimal, and I don't *think* that's because we're pushing stuff into Ruby logic in the Chef recipes...
14:35 abednarik joined #salt
14:36 TimMc "Jinja is not Python" -- interesting.
14:45 Theo joined #salt
14:47 san-tus joined #salt
14:56 drawsmcgraw left #salt
14:58 Shirkdog joined #salt
15:15 lompik joined #salt
15:15 digitalhero joined #salt
15:16 Crazy67 joined #salt
15:16 rotbeard joined #salt
15:16 subsignal joined #salt
15:22 otter768 joined #salt
15:23 digitalhero joined #salt
15:24 rem5 joined #salt
15:25 digitalh_ joined #salt
15:27 digitalhero joined #salt
15:27 quasiben joined #salt
15:28 abednarik joined #salt
15:29 yomilk joined #salt
15:32 lompik joined #salt
15:37 st_iron joined #salt
15:37 st_iron good afternoon
15:41 otter768 joined #salt
15:49 digitalhero joined #salt
15:49 ninkotech joined #salt
15:51 digitalh_ joined #salt
15:51 gcorey joined #salt
15:52 malinoff joined #salt
15:56 ryau joined #salt
16:00 SpX joined #salt
16:04 felskrone joined #salt
16:11 otter768 joined #salt
16:12 _JZ_ joined #salt
16:15 subsignal joined #salt
16:30 yomilk joined #salt
16:31 rem5 joined #salt
16:41 pcn TimMc: Not having entire programs in templates def. makes salt a bit easier to understand.
16:46 otter768 joined #salt
16:58 digitalhero joined #salt
17:13 CeBe joined #salt
17:13 ageorgop joined #salt
17:18 digitalhero joined #salt
17:23 beardedeagle joined #salt
17:29 DanyC joined #salt
17:30 colegatron joined #salt
17:30 djinni` joined #salt
17:35 Trauma joined #salt
17:37 hax404 joined #salt
17:37 digitalh_ joined #salt
17:40 TyrfingMjolnir joined #salt
17:42 beardedeagle joined #salt
17:46 morissette joined #salt
17:46 N-Mi joined #salt
17:47 N-Mi__ joined #salt
17:58 TyrfingMjolnir joined #salt
17:58 keimlink joined #salt
18:04 larsfronius joined #salt
18:07 bluenemo joined #salt
18:10 rem5 joined #salt
18:23 DanyC joined #salt
18:27 shaggy_surfer joined #salt
18:27 zerthimon joined #salt
18:38 ryau joined #salt
18:44 freelock joined #salt
18:51 cyborg-one joined #salt
18:52 ryau joined #salt
19:00 ryau joined #salt
19:03 otter768 joined #salt
19:06 yomilk joined #salt
19:08 digitalhero joined #salt
19:11 felskrone joined #salt
19:12 digitalhero joined #salt
19:25 beardedeagle Built out a working web ui for salt-api, with emphasis on salt-cloud operations. Going to see if company will let me open source it.
19:46 digitalhero joined #salt
19:49 linjan joined #salt
19:56 rem5 joined #salt
20:13 quasiben joined #salt
20:18 ryau_ joined #salt
20:19 blckbit10 joined #salt
20:25 ryau joined #salt
20:28 TyrfingMjolnir joined #salt
21:02 bhosmer joined #salt
21:04 otter768 joined #salt
21:06 yomilk joined #salt
21:06 denys joined #salt
21:12 TyrfingMjolnir joined #salt
21:13 TyrfingMjolnir joined #salt
21:14 ajw0100 joined #salt
21:26 sgargan joined #salt
21:30 ageorgop joined #salt
21:31 jasonrm joined #salt
21:31 TyrfingMjolnir joined #salt
21:31 abednarik joined #salt
21:34 TyrfingMjolnir joined #salt
21:35 TyrfingMjolnir joined #salt
21:44 _JZ_ joined #salt
21:52 huds joined #salt
21:56 RobertChen117 joined #salt
21:56 keimlink joined #salt
21:57 bmcorser joined #salt
22:07 yomilk joined #salt
22:11 TyrfingMjolnir joined #salt
22:11 rome_390 joined #salt
22:18 abednarik joined #salt
22:26 kermit joined #salt
22:27 rem5 joined #salt
22:46 sfxandy joined #salt
22:50 zenlot joined #salt
22:50 swa_work joined #salt
22:59 abednarik joined #salt
23:16 nihe joined #salt
23:16 digitalhero joined #salt
23:23 Rumbles joined #salt
23:28 rem5 joined #salt
23:30 abednarik joined #salt
23:30 colegatron joined #salt
23:36 huds joined #salt
23:43 joejoba joined #salt
23:53 hamsham joined #salt

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