Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-08-24

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

All times shown according to UTC.

Time Nick Message
00:01 oida joined #salt
00:09 debian1121 joined #salt
00:10 sarlalian joined #salt
00:10 GMAzrael joined #salt
00:18 hasues whytewolf: Head hasn't stopped hurting?
00:18 whytewolf it has been a bad month. lots of stress at work. lots of home life stress. havn't been able to sleep much.
00:19 hasues Sigh, I can sympathize.  My year has been bad, and it just keeps getting worse on a personal level.
00:19 hasues Hope yours gets some relief.
00:20 whytewolf thanks. i hope your year gets better
00:21 hasues Not in the cards.
00:22 whytewolf :(
00:30 tellendil joined #salt
00:37 masber joined #salt
00:43 UForgotten joined #salt
00:56 omie888777 joined #salt
01:06 Church- joined #salt
01:39 chinese joined #salt
01:51 ilbot3 joined #salt
01:51 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
01:55 GMAzrael joined #salt
01:58 dxiri joined #salt
02:11 zerocoolback joined #salt
02:17 shanth_ joined #salt
02:18 jessexoc joined #salt
02:20 hasues left #salt
02:31 Church- joined #salt
02:31 Church- joined #salt
02:57 duckfez joined #salt
03:01 evle joined #salt
03:10 k_sze joined #salt
03:12 GMAzrael joined #salt
03:36 michelangelo joined #salt
04:06 iggy shanth_: sounds like you want mine
04:14 twiedenbein joined #salt
04:20 onlyanegg joined #salt
04:23 AnotherNick joined #salt
04:46 Guest73 joined #salt
04:55 sn0wmonster joined #salt
04:58 sn0wmonster left #salt
04:58 sarcasticadmin joined #salt
05:12 Bock joined #salt
05:26 omie888777 joined #salt
05:27 tru_tru joined #salt
05:37 onlyanegg joined #salt
05:44 XenophonF joined #salt
05:53 preludedrew joined #salt
05:53 EvaSDK joined #salt
06:08 Church- joined #salt
06:14 GMAzrael joined #salt
06:22 keldwud joined #salt
06:22 keldwud joined #salt
06:30 darioleidi joined #salt
06:59 impi joined #salt
07:03 tsia joined #salt
07:04 gnomethrower joined #salt
07:07 jessexoc joined #salt
07:10 johnj joined #salt
07:23 AnotherNick joined #salt
07:23 Miouge joined #salt
07:27 _KaszpiR_ joined #salt
07:28 __haqq joined #salt
07:29 __haqq left #salt
07:49 DanyC joined #salt
07:49 DanyC joined #salt
07:51 zulutango joined #salt
07:52 k1412 joined #salt
07:59 jhauser joined #salt
08:00 impi joined #salt
08:03 Hybrid joined #salt
08:10 GMAzrael joined #salt
08:10 mikecmpbll joined #salt
08:11 johnj joined #salt
08:32 Naresh joined #salt
08:39 rgrundstrom joined #salt
09:31 GMAzrael joined #salt
09:31 felskrone joined #salt
09:42 jmiven joined #salt
09:45 nomasprime joined #salt
09:54 nomasprime joined #salt
09:54 nku joined #salt
09:55 nku with file.line, how do i escape after: [foo] properly? seems like salt thinks that's a regex, but \[ gives me found unknown escape character '['
10:12 xet7 joined #salt
10:12 johnj joined #salt
10:21 rgrundstrom I know my for loop is wrong here but I cant for the love of god not figure it out: https://gist.github.com/anonymous/aff88996cdcba6c582eb5d29191fe2f5
10:26 GMAzrael joined #salt
10:26 coredumb rgrundstrom: to much pillar.get calls
10:27 schasi joined #salt
10:27 coredumb {% for x, y in salt.pillar.get('server:network', {}).iteritems() %}
10:27 rgrundstrom coredump yeah
10:28 coredumb x => ens3
10:28 coredumb y[set_type]
10:28 coredumb for the access to values
10:29 coredumb and I think ens3/4 as a list is useless
10:29 tacoboy joined #salt
10:31 aldevar joined #salt
10:31 coredumb rgrundstrom: also for the if statement
10:32 coredumb {% if y['set_gateway'] is defined %}
10:36 rgrundstrom coredump: update https://gist.github.com/anonymous/b4519f853a3bef1af1a85dc74f0caec7#file-gistfile1-txt
10:36 coredumb rgrundstrom: looks better :)
10:36 coredumb have you tried it ?
10:37 * rgrundstrom sorry for beening slow.. 39C fever is making me groggy.
10:37 rgrundstrom Look at the bottom
10:38 rgrundstrom Coredumt: ^
10:38 rgrundstrom Coredump: ^
10:39 babilen recuperate: bed.sleep: - name: rgrundstrom  - watch: body: measure_temperature
10:40 coredumb rgrundstrom: yeah I told you to remove the list on your ens*
10:40 rgrundstrom babilen: sleept.enough ... was boed
10:40 rgrundstrom bored*
10:41 rgrundstrom coredump: So How you suggest i set ipaddresses to specific interfaces?
10:41 coredumb rgrundstrom: just remove the "-"
10:41 coredumb nothing else :)
10:41 rgrundstrom Ahh
10:41 coredumb becomes a key in a dict
10:42 coredumb then the code makes more sense
10:43 rgrundstrom coredump: Yay it works.
10:44 coredumb \o/
10:44 rgrundstrom So... Now comes the advanced stuff i  need to do with this as well
10:44 mquin joined #salt
10:46 rgrundstrom Can you restart network so changes does apply without salt going bananas?
10:46 rgrundstrom do a reload maybie?
10:47 coredumb well if you change IP/def route
10:47 coredumb I don't see much how to not break current tcp connections
10:49 jkaberg joined #salt
10:52 jkaberg is it possible to do jinja {% set test = 'hello' %} in my top pillar and then include another pillar and fetch the value there?
10:52 jkaberg something like templateing my pillar :-P
10:54 coredumb jkaberg: https://docs.saltstack.com/en/latest/topics/jinja/index.html#including-context-during-include-import
10:54 coredumb something like that?
11:00 ws2k3 how can i target a spesific group of minions? can i just do salt 'US1*' pkg.upgrade for example?
11:01 coredumb ws2k3: depend what US1 is
11:02 coredumb https://docs.saltstack.com/en/latest/topics/targeting/ all there
11:08 jkaberg thanks coredumb, testing :-)
11:10 someone_ joined #salt
11:13 johnj joined #salt
11:39 aldevar joined #salt
11:45 evle1 joined #salt
11:47 mavhq joined #salt
12:02 mikecmpb_ joined #salt
12:08 zerocoolback joined #salt
12:09 edrocks joined #salt
12:11 Nahual joined #salt
12:14 johnj joined #salt
12:23 rgrundstrom When you do for on pillar.get does it not read in order?
12:25 rgrundstrom https://gist.github.com/anonymous/db9cf0e70265221ff011494f660c0805#file-gistfile1-txt
12:27 GMAzrael joined #salt
12:29 rgrundstrom I dont think this is critical to the configuration tho... It just looks bad.
12:36 high_fiver joined #salt
12:39 coredumb rgrundstrom: no python dicts are not ordered
12:39 coredumb if that's too much of a bother look at the jinja filters
12:39 coredumb maybe there's something for sorting out
12:45 rgrundstrom I can live with it :)
12:51 babilen You can sort by keys
12:53 dxiri joined #salt
13:02 coredumb babilen: can you?
13:02 coredumb with a jinja filter?
13:03 babilen http://jinja.pocoo.org/docs/dev/templates/#dictsort
13:03 XenophonF joined #salt
13:04 coredumb yep ok
13:05 gh34 joined #salt
13:06 overyander joined #salt
13:07 Church- joined #salt
13:09 zerocoolback joined #salt
13:13 numkem joined #salt
13:15 johnj joined #salt
13:21 johnj joined #salt
13:22 darioleidi joined #salt
13:23 cgiroua joined #salt
13:31 christopherl-sf joined #salt
13:36 racooper joined #salt
13:36 christopherl-sf_ joined #salt
13:39 justanotheruser joined #salt
13:40 Guest73 joined #salt
13:42 numkem joined #salt
13:49 zerocoolback joined #salt
13:54 overyander is there a way for salt to run a command and then provide input to anticipated prompts? I'm trying to get a vpn client to start. I can run the command to connect easily enough, but the program then prompts (cli) for username and password. there isn't a way to provide those values as switches.
13:55 brd overyander: you could use an expect script to do that..
13:56 overyander unfortunately, i'm doing this in windows.
13:58 mchlumsky joined #salt
13:58 babilen Can we disable service restarts/reloads during highstates nowadays? (i.e. roll out configuration file changes, but don't trigger mod_watch)
13:59 edrocks joined #salt
13:59 bildz is it possible to have a custom grain that gets values back from powershell?
14:00 Hybrid joined #salt
14:04 kedare joined #salt
14:17 GMAzrael joined #salt
14:20 Hybrid joined #salt
14:31 onlyanegg joined #salt
14:33 MajObviousman bildz: write a state which does a {% set the_grain = salt['cmd.run']('your command here') %} and then sets a grain with the value of {{ the_grain }}
14:33 MajObviousman I don't know if cmd.run uses powershell or not, but use whatever the appropriate execution module is
14:33 MajObviousman also, grains are supposed to be static-ish
14:34 snc joined #salt
14:37 johnkeates joined #salt
14:38 sarcasticadmin joined #salt
14:50 jmiven joined #salt
14:52 Hybrid joined #salt
14:56 NegiLXXXVIII joined #salt
14:57 NegiLXXXVIII hi
15:00 Brew joined #salt
15:04 omie888777 joined #salt
15:13 dxiri_ joined #salt
15:15 edrocks joined #salt
15:17 aldevar joined #salt
15:22 christopherl-sf joined #salt
15:24 christopherl-sf_ joined #salt
15:27 Hybrid joined #salt
15:29 christopherl-sf joined #salt
15:30 fritz09 joined #salt
15:36 pipps joined #salt
15:37 Deevolution joined #salt
15:40 pipps joined #salt
15:48 _JZ_ joined #salt
15:54 schasi hi
15:55 zerocoolback joined #salt
16:06 onlyanegg joined #salt
16:18 darix babilen: well dont configure the watch then?
16:19 babilen darix: I am not adjusting a plethora of services, just because I want to deploy changes that I'd like to be in place for the next reboot
16:19 babilen s/services/SLS
16:19 babilen I might do that and adopt what Lyft are doing, but that's not our setup right now
16:20 darix babilen: now imagine someone restarts the service before the next reboot. only on some machines. which then will break your app.
16:20 darix babilen: you actually want to timebomb yourself.
16:20 darix how about deploying the change and triggering the reboot together?
16:21 babilen I can't do that right now, we have maintenance windows and I'd like to prepare it
16:21 babilen And there definitely are good usecases for not restarting a service during a saltrun
16:21 darix babilen: so have your change in the test branch and merge it into production when your window comes
16:21 babilen In fact it would be nice if one could run salt first and then trigger all restarts later
16:21 darix babilen: sure. but in those cases you wouldnt configure the watch ;)
16:22 darix babilen: you can. if you split up your work into reactors
16:22 babilen So, the answer is: No
16:22 whytewolf babilen: or, if you knew about that use case you would put the watch in a triggered jinja render so that you could disable it with a flick of a pillar
16:22 darix yeah that too
16:23 babilen Lyft are using this for running salt and *ONLY* if the salt run succeeded they'll restart their services
16:23 babilen As, up unto that point, the service is still happy
16:23 babilen And you can easily rollback your (broken) changes
16:24 babilen And yes, if all watch statements in every SLS had jinja around it that would be nice, but I was thinking that this *might* be possible on a more global level that doesn't require that boilerplate
16:24 whytewolf nothing is saying you can't do that. but that takes preplanning
16:25 babilen Yeah, in particular it necessitates not using any watch/listen statements
16:25 whytewolf yes. because it goes against the purpase of watch/listen
16:25 darioleidi joined #salt
16:26 darix imho the jinja + pillar to decide when to restart or not
16:26 darix is a good idea
16:26 babilen It would require so much boilerplate in every single file .. we'd keep many people very busy for a long time
16:27 darix babilen: once. ;)
16:27 babilen Do you know how much salt code there is out there?
16:29 debian112 joined #salt
16:31 whytewolf in your enviroment. i have no idea. in others a lot. but not everyone is asking for this kind of feature and most that are looking for it planned for it ahead of time and wrote their states to account for it. or used orchestration if they were not masterless
16:31 fatal_exception joined #salt
16:44 edrocks joined #salt
16:51 aleph- joined #salt
16:55 shanth__ joined #salt
17:06 babilen whytewolf: It's okay, I deployed this manually now
17:10 ssplatt joined #salt
17:14 GMAzrael joined #salt
17:20 omie888777 joined #salt
17:25 fatal_exception joined #salt
17:26 Pulp joined #salt
17:26 pipps joined #salt
17:40 mikecmpbll joined #salt
17:49 christopherl-sf_ joined #salt
17:52 christopherl-sf joined #salt
18:03 frygor_ joined #salt
18:04 numkem joined #salt
18:08 sjorge joined #salt
18:20 brianthelion joined #salt
18:24 elektrix joined #salt
18:26 elektrix joined #salt
18:28 hasues joined #salt
18:28 hasues left #salt
18:30 bowhunter joined #salt
18:30 numkem joined #salt
18:41 pipps joined #salt
18:41 elektrix joined #salt
18:41 cyborg-one joined #salt
18:44 bowhunter joined #salt
18:45 sh123124213 joined #salt
18:45 fritz09 joined #salt
18:52 nonsenso joined #salt
18:58 pualj joined #salt
18:59 xet7 joined #salt
19:02 btorch joined #salt
19:04 Hybrid joined #salt
19:05 btorch is there a way to see scheduled jobs ? like I've created a schedule state with a job in it. I applied the state and it sees to have been applied but I can't seem to find a salt-run or saltutil call that would return a scheduled job
19:06 ChubYann joined #salt
19:06 whytewolf https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.schedule.html#salt.modules.schedule.list
19:06 whytewolf but that is for schedules added with schedule.add i think
19:07 btorch maybe the list let me try that , forgot about the module page
19:12 edrocks joined #salt
19:12 elektrix joined #salt
19:13 tiwula joined #salt
19:14 btorch whytewolf: yep thanks schedule.list did it
19:15 GMAzrael joined #salt
19:28 Hybrid joined #salt
19:34 XenophonF joined #salt
19:38 dxiri joined #salt
19:38 cro joined #salt
19:42 pipps joined #salt
19:45 Scotty_ joined #salt
19:57 seffyroff joined #salt
20:02 pipps joined #salt
20:03 pipps joined #salt
20:05 pyropoptrt joined #salt
20:08 Karunamon joined #salt
20:18 pyropoptrt left #salt
20:18 pyropoptrt joined #salt
20:18 pyropoptrt Hey guys, I'm relatively new to salt. I don't know the nomenclature for what I'm wanting to do and I was hoping you could point me in the right direction.
20:18 pyropoptrt I'm wanting to put together a file that would do several different calls and report back data but now change anything
20:18 pyropoptrt CPU count, memory count, modprobe, plus several service configuration values
20:20 pipps joined #salt
20:21 pipps joined #salt
20:22 tobstone joined #salt
20:22 pyropoptrt joined #salt
20:23 pipps joined #salt
20:26 pipps99 joined #salt
20:32 DanyC joined #salt
20:45 pipps joined #salt
20:49 whytewolf pyropoptrt: sounds like you want meteric beats not salt.
20:49 whytewolf metricbeat*
20:52 swills joined #salt
20:52 swills joined #salt
20:53 pipps joined #salt
20:54 sh123124213 joined #salt
20:54 Church- joined #salt
20:56 pyropoptrt @whytewolf I'll have to look that up. I've never heard of that
20:57 whytewolf it is a part of elasticsearch. basicly it sends metric data to elaticsearch about every 10 seconds [can be adjusted]
20:58 whytewolf but really. I'm saying salt might not be the best tool for the task you put forth. it is a configuration tool. used for building infrastrcture. it can do what you want. but it isn't the best tool to do it.
21:00 christopherl-sf joined #salt
21:01 pyropoptrt Watching the intro video now. That's pretty cool. I need to investigate more into elasticsearch as well. Can you set the time interval, like say once a day?
21:02 nixjdm joined #salt
21:02 christopherl-sf_ joined #salt
21:02 adelcast joined #salt
21:03 whytewolf well it defaults to 10 seconds. but that is changable
21:03 adelcast left #salt
21:04 pyropoptrt Pretty neat. I'm basically trying to set up a security profile report that I can run on various servers on regular intervals to check compliance. Was hoping to leverage SaltStack for this
21:07 christopherl-sf joined #salt
21:08 pipps joined #salt
21:09 svolentin joined #salt
21:16 Church- joined #salt
21:16 Church- joined #salt
21:17 GMAzrael joined #salt
21:19 iggy pyropoptrt: hubblestack ?
21:19 pyropoptrt Yeah I know about hubblestack. I would like to implement that into our saltstack infrastructure which we're trying to implement currently
21:24 pyropoptrt Definitely sounds like I need to get hubblestack up and running as soon as possible
21:25 johnkeates joined #salt
21:27 pyropoptrt Thank you whytewolf and iggy. The information you have both provided has been absolutely invaluable!
21:31 sh123124213 joined #salt
21:33 Church- joined #salt
21:33 pualj joined #salt
21:38 pipps joined #salt
21:39 pipps99 joined #salt
21:40 bowhunter joined #salt
21:42 pipps joined #salt
21:55 sp0097 joined #salt
21:56 dubb-b joined #salt
22:14 pipps joined #salt
22:17 nixjdm joined #salt
22:17 pipps99 joined #salt
22:20 dxiri_ joined #salt
22:27 cholcombe does everyone generally setup a cron job to have the minions do a highstate?  I'm wondering if i can get salt to setup that job for me
22:30 whytewolf cholcombe: https://github.com/whytewolf/salt-phase0-states/blob/master/sys/maint/highstate.sls the first state in there is a job to setup a schedule job that runs ever 1800 seconds to highstate [ignore the second that is a part of my dynnamic top file]
22:31 cholcombe whytewolf: thanks!
22:31 whytewolf https://docs.saltstack.com/en/latest/topics/jobs/#scheduling-jobs
22:31 cholcombe interesting.
22:31 cholcombe yeah that looks like exactly what i want
22:32 pipps joined #salt
22:33 jessexoc joined #salt
22:34 ssplatt joined #salt
22:35 cholcombe whytewolf: were does that cmd land on the minion system?
22:37 whytewolf ?
22:37 cholcombe does it through that into the root crontab?
22:37 cholcombe throw*
22:37 whytewolf no
22:37 whytewolf salt has a built in scheduler
22:37 cholcombe ah ok
22:38 cholcombe let me delete my manual job from the other minions then
22:41 whytewolf cholcombe: here is the module for interacting with the scheduler https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.schedule.html
22:42 cholcombe thanks
22:47 pipps joined #salt
22:49 pipps99 joined #salt
23:05 systemexit joined #salt
23:09 pipps joined #salt
23:10 zerocoolback joined #salt
23:15 systemexit joined #salt
23:17 nixjdm joined #salt
23:19 GMAzrael joined #salt
23:23 pdayton joined #salt
23:24 jeddi joined #salt
23:32 pdayton joined #salt
23:33 cro joined #salt
23:43 pipps joined #salt
23:45 pipps joined #salt
23:47 mavhq joined #salt
23:50 pipps joined #salt
23:54 zerocoolback joined #salt

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