Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-12-11

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

All times shown according to UTC.

Time Nick Message
00:00 saltslackbridge joined #salt
00:00 alexlist joined #salt
00:07 masber joined #salt
00:09 hunmonk gtmanfred: this is output from a fresh install with the previous provider config i showed you: http://ix.io/CXZ
00:10 hunmonk gtmanfred: i'll try again now placing global grains at the top level of /etc/salt/cloud
00:11 saltslackbridge <gtmanfred> Yeah, see what I said above. It looks like I was told wrong by the guy who wrote salt-cloud initially
00:15 Manor joined #salt
00:16 Zachary_DuBois joined #salt
00:39 asyncsec joined #salt
00:50 Oida joined #salt
00:50 Manor joined #salt
01:03 mcqueenorama joined #salt
01:15 sh123124213 joined #salt
01:24 mcqueeno1ama joined #salt
01:25 hunmonk gtmanfred: nope, no luck with that approach, either. given a /etc/salt/cloud like this: http://ix.io/CYj and a provider config like this: http://ix.io/CYk i get minion/grains like this on the created server: http://ix.io/CYl
01:27 saltslackbridge <gtmanfred> Move it out of the minion dictionary in the provider as well
01:27 saltslackbridge <gtmanfred> Put it on the top level of the provider
01:27 hunmonk alrighty then. next iteration :)
01:28 hunmonk gtmanfred: you mean like this, correct? http://ix.io/CYm
01:29 saltslackbridge <gtmanfred> Yes
01:31 sh123124213 joined #salt
01:40 rem5_ joined #salt
01:44 hunmonk gtmanfred: nope, right back where we started from, it overwrites the global grain: http://ix.io/CYn
01:44 mcqueenorama joined #salt
01:46 saltslackbridge <gtmanfred> OK, then could you open an issue for a feature request to add an option to allow merging the grains dictionary?
02:05 mcqueeno1ama joined #salt
02:14 mcqueeno1ama joined #salt
02:15 Manor joined #salt
02:59 ilbot3 joined #salt
02:59 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
03:00 shiranaihito joined #salt
03:01 gnomethrower joined #salt
03:09 mcqueenorama joined #salt
03:15 hunmonk gtmanfred: sure thing, will take care of that tonight
03:15 saltslackbridge <gtmanfred> Thanks!
03:21 justan0theruser joined #salt
03:32 hunmonk gtmanfred: https://github.com/saltstack/salt/issues/44908
03:33 hunmonk gtmanfred: and thanks for your help debugging that issue
03:36 Manor joined #salt
03:45 JPT joined #salt
03:53 mcqueeno1ama joined #salt
04:12 Manor joined #salt
04:21 tiwula joined #salt
04:27 tiwula joined #salt
04:30 masuberu joined #salt
04:30 shripadr joined #salt
04:31 justanotheruser joined #salt
04:36 justanotheruser joined #salt
04:51 Oida joined #salt
05:10 Manor joined #salt
05:19 Felgar joined #salt
05:24 zerocool_ joined #salt
05:26 whytewolf joined #salt
05:29 zerocool_ joined #salt
05:42 masber joined #salt
05:53 hunmonk left #salt
06:01 mcqueenorama joined #salt
06:02 shripadr joined #salt
06:03 k_sze[work] joined #salt
06:07 indistylo joined #salt
06:08 XenWolf joined #salt
06:14 indistylo joined #salt
06:16 shripadr joined #salt
06:21 shripadr joined #salt
06:43 Manor joined #salt
06:45 aldevar joined #salt
07:02 mcqueenorama joined #salt
07:06 Ricardo1000 joined #salt
07:11 aldevar1 joined #salt
07:13 CEH joined #salt
07:26 felskrone joined #salt
07:26 Elsmorian joined #salt
07:31 hoonetorg joined #salt
07:46 aidin joined #salt
07:49 evle joined #salt
07:50 pualj joined #salt
07:53 om2 joined #salt
08:03 mcqueenorama joined #salt
08:05 Manor joined #salt
08:06 Manor_ joined #salt
08:11 Manor joined #salt
08:11 Tucky joined #salt
08:13 Manor joined #salt
08:18 k_sze[work] joined #salt
08:19 GrisKo joined #salt
08:20 apofis joined #salt
08:22 Hybrid1 joined #salt
08:24 sh123124213 joined #salt
08:36 aidin joined #salt
08:39 Ricardo1000 joined #salt
08:41 seano joined #salt
08:41 usernkey joined #salt
08:44 seano joined #salt
08:45 darioleidi joined #salt
08:47 hammer065 joined #salt
08:52 colttt joined #salt
08:57 do3meli joined #salt
08:57 do3meli left #salt
09:04 mcqueenorama joined #salt
09:06 robman joined #salt
09:09 nowwoo91 joined #salt
09:14 DanyC joined #salt
09:15 _KaszpiR_ joined #salt
09:30 mkoskar joined #salt
09:30 seanorama joined #salt
09:34 ivil joined #salt
09:35 ivil left #salt
09:40 robman joined #salt
09:43 aldevar joined #salt
09:47 JPT Were there some recent changes for how salt_minion is installed/configured/run on FreeBSD 11?
09:48 JPT For some reason, the installed salt-minion behaves a bit strange ('test.ping' is not available.')
09:48 JPT Also, service salt_minion restart points out that salt_minion does not exist as a service.
09:51 JPT ... for some reason, py27-salt was not installed anymore. How is that possible while pkg.upgrade gets run daily :o
09:52 Mattch joined #salt
09:53 JPT Oh well, i guess i know how to fix it. Thanks for listening to my confusion. :)
09:55 yuhl joined #salt
09:56 robman joined #salt
10:04 Elsmorian joined #salt
10:05 mcqueenorama joined #salt
10:22 seano joined #salt
10:24 sh123124213 joined #salt
10:24 dhwt joined #salt
10:25 yuhl joined #salt
10:26 pseudonymous joined #salt
10:27 pseudonymous Hey - I'm researching salt (evaluating it for my usecase). I'm presently going the salt-ssh route. One thing that confuses me slightly -- how does targetting work with salt-ssh ? I know I have my roster file, but can't I define groups of nodes in some way ? And if so, how ?
10:35 zerocool_ joined #salt
10:36 yuhl joined #salt
10:38 robman joined #salt
10:38 RandyT joined #salt
10:38 RandyT joined #salt
10:44 mkoskar pseudonymous: afaik you can define groups of target in master config, have a look at "nodegroups"
10:44 major joined #salt
11:06 mcqueenorama joined #salt
11:20 om joined #salt
11:21 jasperla joined #salt
11:22 sol7 joined #salt
11:22 jasperla left #salt
11:22 jasperla joined #salt
11:39 aidin joined #salt
11:40 msn joined #salt
11:40 mcqueenorama joined #salt
11:42 pseudonymous mkoskar: ah :) I have tried that now but I can't seem to use it when calling salt-ssh on the command-line. I added an entry similar to https://docs.saltstack.com/en/latest/topics/targeting/nodegroups.html and call salt using `salt-ssh -N 'mygroup' test.ping`. The result is "no matching targets found in roster"
11:52 mkoskar pseudonymous: hmm, I admit I've never used it myself, are you sure you specified it correctly?
11:52 _KaszpiR_ joined #salt
12:03 aidin joined #salt
12:04 shripadr_ joined #salt
12:21 kettlewell joined #salt
12:40 saltslackbridge <james> What's the magic variable that contains the state file name?
12:40 saltslackbridge <james> {{ tpl }} ?
12:40 dstensnes wasn't it "{{ sls }}"
12:40 dstensnes ?
12:41 mcqueenorama joined #salt
12:42 major joined #salt
12:44 saltslackbridge <james> Oh, is it
12:44 saltslackbridge <james> Are there any more of these magic variables?
12:45 dstensnes https://docs.saltstack.com/en/latest/ref/states/vars.html
12:48 _KaszpiR_ joined #salt
12:51 aviau joined #salt
12:52 Neighbour james: there's also tpldir, tpldot and tplfile
12:53 Neighbour which contain the current dir, the current dir (with dots instead of slashes) and the current file
12:53 dstensnes Neighbour: shouldn't they be mentioned in the page i pasted above?
13:06 saltslackbridge <james> Cool, thanks for that
13:15 Neighbour dstensnes: probably :)
13:27 usernkey joined #salt
13:37 pseudonymous joined #salt
13:41 wevanscfi joined #salt
13:41 Hybrid1 joined #salt
13:42 gh34 joined #salt
13:42 mcqueenorama joined #salt
13:47 netcho joined #salt
13:47 netcho joined #salt
13:51 netcho hi all
13:53 edrocks joined #salt
13:56 Swant joined #salt
13:59 Hybrid1 joined #salt
14:00 ecdhe joined #salt
14:03 rem5_ joined #salt
14:04 robman joined #salt
14:11 saltslackbridge <james> Should I be able to fire 2 states from a reactor?
14:11 saltslackbridge <james> it seems like the 2nd one isn't firing but still appears in the `state.event` log
14:12 cgiroua joined #salt
14:13 cgiroua joined #salt
14:15 pseudonymous mkoskar: Not entirely sure I specified everything correctly, ever :P But here's a summary https://paste.ubuntu.com/26163734/
14:15 toanju joined #salt
14:16 pseudonymous generally - I'm trying to use nodegroups with salt-ssh and getting 'No matching targets found in roster' - https://paste.ubuntu.com/26163734/ summarizes my settings
14:19 saltslackbridge <james> Had to specify `queue: True`
14:19 saltslackbridge <james> Sorted!
14:20 jbkc85_ joined #salt
14:20 jbkc85_ Hi all, I was wondering if there is a way to delegate a task to the master host.  IE: I want to register a service after the service deployment is complete, but I don't want that to be done on a minion
14:20 jbkc85_ Is that an 'event' on the salt master that should be triggered on each deployment, or is there a way within each state to 'delegate' a task
14:21 mkoskar pseudonymous: shouldn't it be ec2: 'L@tst,vpngw'?
14:22 sol7_ joined #salt
14:22 zerocool_ joined #salt
14:27 pseudonymous mkoskar: can't say I know yet - I just tried it, however and I got the same error. 'salt-ssh -N ec2 test.ping' => 'No matching targets found in roster.'
14:32 saltslackbridge <james> You could use orchestrate jbkc85_
14:32 saltslackbridge <james> That's designed for running multiple tasks across minions (and master)
14:32 saltslackbridge <james> or you could trigger a reactor after your state finishes
14:33 jbkc85_ Im thinking I want a reactor based on particular pillars available...I just dont want all these minions to be doing something when its the master that is the single source of truth atm
14:37 mkoskar pseudonymous: hmm, idk then ... there is also ssh_list_nodegroups: {} so maybe that one is dedicated to salt-ssh?
14:42 mcqueenorama joined #salt
14:42 netcho why does salt-cloud return (only for amazon linux images) [ERROR   ] There was a profile error: list index out of range
14:43 netcho if del_root_volume_on_destroy is set in provider
14:54 noobiedubie joined #salt
14:58 robman joined #salt
15:00 numkem joined #salt
15:04 pualj joined #salt
15:06 racooper joined #salt
15:11 robman joined #salt
15:15 mcqueenorama joined #salt
15:17 rewbycraft joined #salt
15:19 user-and-abuser joined #salt
15:21 brianthelion joined #salt
15:35 pualj joined #salt
15:36 toanju joined #salt
15:45 asyncsec joined #salt
15:50 pualj joined #salt
15:51 pualj_ joined #salt
15:57 aidin joined #salt
16:01 mchlumsky joined #salt
16:10 pualj_ joined #salt
16:17 mcqueenorama joined #salt
16:19 tiwula joined #salt
16:20 DammitJim joined #salt
16:24 racooper Is there a salt module that can perform the equivalant of a "wall" command to send messages to all logged in users?
16:24 jbkc85__ joined #salt
16:27 pualj joined #salt
16:30 saltslackbridge <gtmanfred> it would be trivial to write a module that just runs `__salt__['cmd.run']('wall {0}'.format(message))`, but i am not sure if it will work on systemd, might require fiddling with policy kit files.
16:32 saltslackbridge <gtmanfred> i am not aware of one existing already
16:33 Heartsbane joined #salt
16:33 Heartsbane joined #salt
16:33 Manor joined #salt
16:35 Micromus joined #salt
16:38 mcqueeno1ama joined #salt
16:39 _JZ_ joined #salt
16:39 major joined #salt
16:48 tkojames joined #salt
16:48 evle joined #salt
16:55 Manor joined #salt
16:58 pipps joined #salt
16:59 tkojames joined #salt
17:01 heaje joined #salt
17:02 tkojames joined #salt
17:04 tkojames1 joined #salt
17:05 nixjdm joined #salt
17:05 pipps joined #salt
17:05 Hybrid1 joined #salt
17:06 tkojames1 joined #salt
17:07 aldevar left #salt
17:09 Rubin joined #salt
17:12 akar joined #salt
17:24 Hybrid1 joined #salt
17:27 it_dude joined #salt
17:28 aldevar joined #salt
17:28 Manor joined #salt
17:29 DanyC joined #salt
17:30 DanyC_ joined #salt
17:31 seanorama joined #salt
17:31 pokEarl joined #salt
17:32 Manor joined #salt
17:34 Manor_ joined #salt
17:34 seano joined #salt
17:36 indistylo joined #salt
17:57 Elsmorian joined #salt
18:03 seano joined #salt
18:05 lordcirth_work Why would systemd cause a problem?  wall works with systemd as far as I've seen
18:06 pipps joined #salt
18:06 akar joined #salt
18:12 saltslackbridge <gtmanfred> right, but it could require a logind session to actually do the command, not positive, but it might in order to get access to all the /dev/pts/* to actually send the messages
18:12 akar left #salt
18:14 cgiroua joined #salt
18:24 sjorge joined #salt
18:28 ymasson joined #salt
18:31 toanju joined #salt
18:32 pipps joined #salt
18:34 seanorama joined #salt
18:40 jbkc85_ joined #salt
18:40 cgiroua joined #salt
18:48 pipps joined #salt
18:51 lordcirth_work Oh that's possible.  But if there's no logind, then there's no one logged in, so you could just return true?
18:51 agj left #salt
18:52 pipps99 joined #salt
18:54 MTecknology lordcirth_work: because sysD causes problems with just about everything? :)
19:02 pipps joined #salt
19:06 _KaszpiR_ joined #salt
19:14 eseyman joined #salt
19:23 astronouth7303 Is there a command to get a minion to generate its key or wait for it to do so?
19:24 lordcirth_work astronouth7303, like, a config directive to tell the minion not to generate a key on startup?
19:24 pualj joined #salt
19:25 astronouth7303 No, I'm doing some bootstrappy things and need to wait for the minion to have its key and submit it to the master
19:27 saltslackbridge <gtmanfred> astronouth7303, you can use the salt-key --gen-keys=<minion_id> to generate the key
19:27 astronouth7303 (I'm using masterless salt to initialize a master/minion pair for CI)
19:28 pipps joined #salt
19:28 saltslackbridge <gtmanfred> you might be able to use saltutil.wheel to generate a key? https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.wheel
19:28 saltslackbridge <gtmanfred> yeah
19:29 saltslackbridge <gtmanfred> `salt-call saltutil.wheel key.gen_keys keyname=<minion_id>`
19:29 saltslackbridge <gtmanfred> that should work
19:35 netcho joined #salt
19:35 netcho joined #salt
19:35 pipps joined #salt
19:36 pipps joined #salt
19:37 astronouth7303 Hm. I think it needs more args to actually end up in the right place? https://travis-ci.org/astronouth7303/travis-salt
19:37 schemanic joined #salt
19:37 schemanic Hello, I think I broke my salt master with a yum upgrade. Not sure what this traceback means: https://gist.github.com/anonymous/2eeb0baa451e8dfa2363c16ec5459787
19:38 onlyanegg joined #salt
19:42 oida joined #salt
19:42 vaelen joined #salt
19:44 ipmb joined #salt
19:47 astronouth7303 Or I could set open mode and sidestep the issue
19:47 ipmb joined #salt
19:48 ipmb_ joined #salt
19:49 pokEarl joined #salt
19:59 dlloyd_ joined #salt
20:01 StolenToast joined #salt
20:06 wongster80 joined #salt
20:07 jbkc85_ joined #salt
20:08 major joined #salt
20:10 brokensyntax joined #salt
20:23 schemanic joined #salt
20:29 benasse joined #salt
20:30 saltslackbridge <gtmanfred> you could do that too, but check out the wheel:key.gen_keys function, it has a bunch of stuff in there
20:30 SamYaple /win/win 17
20:37 wongster80 joined #salt
20:44 schemanic joined #salt
20:48 pipps joined #salt
20:49 user-and-abuser joined #salt
21:02 lordcirth_work So I've got a case where lxc-create on a minion works, but lxc.init doesn't.  Same template.  Salt attaches it to br0 in spite of the template defining br186
21:03 alau joined #salt
21:06 schemanic can anyone help me understand what's going on with my salt-master config?
21:06 pfallenop joined #salt
21:06 alau joined #salt
21:07 lordcirth_work schemanic, "coercing to Unicode: need string or buffer, int found" so it's a type error
21:07 schemanic right but this worked right before I ran sudo yum upgrade salt-master
21:07 saltslackbridge <gtmanfred> osmajorrelease is now an integer iirc
21:07 saltslackbridge <gtmanfred> that was cahnged in 2017.7
21:08 saltslackbridge <gtmanfred> there was a deprecation warning for 2 releases
21:08 saltslackbridge <gtmanfred> switch the + to ~ and it should concatinate that string
21:08 saltslackbridge <gtmanfred> otherwise use a |format() filter
21:08 schemanic I see, so the formula I'm using is probably outdated
21:08 saltslackbridge <gtmanfred> schemanic https://docs.saltstack.com/en/develop/topics/releases/2017.7.0.html#grains-changes
21:09 seano joined #salt
21:09 alau joined #salt
21:10 swills joined #salt
21:13 schemanic gtmanfred, would a cast to string also work?
21:19 Manor joined #salt
21:23 toanju joined #salt
21:28 saltslackbridge <gtmanfred> sure, you can cast to a string, you can either do that, use |format, or use the actual concatenation operator in jinja which is `~` and not `+`
21:29 yuhl joined #salt
21:31 jbkc85__ joined #salt
21:39 _JZ_ joined #salt
21:47 sol7 joined #salt
21:48 jhujhiti_ joined #salt
21:48 yuhl joined #salt
21:48 pipps joined #salt
21:48 Guest73 joined #salt
21:49 kuromagi^ joined #salt
21:50 jhujhiti joined #salt
21:50 mmidgett joined #salt
21:50 Nimbus joined #salt
21:50 karlthane joined #salt
21:51 mpanetta joined #salt
21:51 wireknot_ joined #salt
21:51 bd_ joined #salt
21:51 MTecknol1gy joined #salt
21:51 cofeineS1nshine joined #salt
21:51 cwright_ joined #salt
21:53 qman joined #salt
21:54 yidhra joined #salt
21:54 dcrouch joined #salt
21:54 Tyrant_ joined #salt
21:55 heyimawesome_ joined #salt
21:55 v0rtex_ joined #salt
21:55 manfred joined #salt
21:55 rome_390_ joined #salt
21:55 gareth__- joined #salt
21:55 marcinkuzminski_ joined #salt
21:55 k1412_ joined #salt
21:56 dvdmuckle_ joined #salt
21:56 llua` joined #salt
21:56 asoc joined #salt
21:57 ahammond joined #salt
21:59 schemanic joined #salt
21:59 pryorda joined #salt
21:59 kavakava joined #salt
22:00 swa_work joined #salt
22:00 MTecknol1gy left #salt
22:00 keith4 joined #salt
22:00 MTecknology joined #salt
22:00 MTecknology joined #salt
22:00 MTecknology [A
22:00 MTecknology [A
22:00 MTecknology [A
22:00 MTecknology [A
22:00 MTecknology [A
22:00 MTecknology [A
22:00 racooper joined #salt
22:00 MTecknology sorry... :(
22:01 sol7 joined #salt
22:01 gtmanfred you better be sorry, i was getting on irc to kick you in case you were in a feedback loop :P
22:01 evle joined #salt
22:01 lordcirth_work the bigger channels would have autoquieted at 4
22:02 onlyanegg joined #salt
22:02 gtmanfred yeah, but that would require me to run a bot all the time, and who really wants to do that ...
22:08 SamYaple gtmanfred: bots are cool! esspecially when other people are maintaining them :P
22:08 gtmanfred exactly
22:12 MTecknology I had to /part #salt so I could change my nick and identify, and that screwed with the ordering. I was trying to re-do "/window move left" a bunch of times using up/enter<repeat>. I'm not sure where the [A stuff came from, but I didn't notice it right away.
22:12 my-mycelium joined #salt
22:14 schemanic Heya, on Amazon linux, I've got one salt minion refusing to upgrade to 2017 from 2016 because yum's tornado package is way low, but pip has tornado at the right version. What gives?
22:14 gtmanfred pip dependencies do not affect rpm dependencies
22:15 gtmanfred make sure you check what rpm -q python-tornado actually says
22:15 gtmanfred also note, 2017.7 depends on python2.7, so make sure you are actually checking pip 2.7 and not just pip
22:15 gtmanfred because pip will still be python 2.6
22:15 gtmanfred https://docs.saltstack.com/en/develop/topics/releases/2017.7.0.html#python-2-6-deprecation
22:16 schemanic rpm -q says python-tornado-4.2.1-1.el6.x86_64
22:16 gtmanfred that is going to be a python26 package
22:16 gtmanfred check for a python27-tornado
22:16 schemanic oh yes hang on
22:17 schemanic okay that says it's not installed
22:17 schemanic however, yum upgrade says theres no installation candidate
22:17 gtmanfred http://repo.saltstack.com/yum/amazon/latest/x86_64/latest/
22:17 schemanic over the required version
22:17 gtmanfred well, it is in the amazon linux repository
22:17 gtmanfred so it is something with your machine.
22:19 schemanic the box has been online for a few hundred days. likely yum repo fell behind
22:22 Trauma_ joined #salt
22:23 pppingme joined #salt
22:23 xet7 joined #salt
22:27 my-mycelium left #salt
22:33 wongster80 joined #salt
22:33 aldevar left #salt
22:51 mk-fg joined #salt
22:51 mk-fg joined #salt
22:51 pipps joined #salt
22:53 pipps99 joined #salt
22:55 pipps_ joined #salt
23:02 pipps joined #salt
23:09 jesusaur joined #salt
23:27 peters-tx joined #salt
23:36 dh joined #salt
23:39 zer0def joined #salt
23:55 Twiglet joined #salt
23:59 CheckYourSix__ joined #salt
23:59 johtso joined #salt
23:59 _snd joined #salt
23:59 mquatrani joined #salt
23:59 petems joined #salt
23:59 djural joined #salt
23:59 futuredale joined #salt
23:59 SteamWells joined #salt
23:59 Kelsar joined #salt
23:59 darix joined #salt
23:59 mschiff joined #salt
23:59 mschiff joined #salt
23:59 mbologna joined #salt

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