Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-06-28

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

All times shown according to UTC.

Time Nick Message
00:04 edrocks joined #salt
00:06 raspado joined #salt
00:09 dxiri joined #salt
00:18 xet7 joined #salt
00:28 patrek joined #salt
00:48 NotBobDole joined #salt
00:48 fracklen joined #salt
00:59 cwandrews joined #salt
01:38 Guest73 joined #salt
01:46 aneeshusa joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.5 <+> 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 <+> The call for speakers for SaltConf17 is now open: http://tinyurl.com/SaltConf17
01:51 fracklen joined #salt
01:54 Praematura joined #salt
01:59 noobiedubie joined #salt
02:04 rburkholder joined #salt
02:06 edrocks joined #salt
02:19 zerocool_ joined #salt
02:22 hemebond joined #salt
02:24 mikea if you feed salt a master hostname that has more than one A record will salt still connect to all of them?
02:24 mikea so like
02:24 mikea salt.foo.com resolves to 1.2.3.4 and 1.2.3.5, will the minion make both connections or connect to whichever one comes first?
02:26 inire the resolver only gets one a record from a dns server until it asks again
02:33 fracklen joined #salt
02:35 Ch3LL joined #salt
02:35 gmacon joined #salt
02:37 gadams joined #salt
02:37 MTecknology joined #salt
02:37 saltstackbot joined #salt
02:38 JPaul joined #salt
02:39 asoc joined #salt
02:39 gtmanfred joined #salt
02:39 TooLmaN joined #salt
02:41 zerocoolback joined #salt
02:41 froztbyt1 left #salt
02:41 froztbyte joined #salt
02:41 armonge joined #salt
02:43 Ahlee joined #salt
02:43 setkeh joined #salt
02:43 setkeh joined #salt
02:53 fracklen joined #salt
03:02 ashmckenzie joined #salt
03:14 twiedenbein joined #salt
03:19 donmichelangelo joined #salt
03:29 gnomethrower joined #salt
03:33 yidhra joined #salt
03:48 evle1 joined #salt
03:51 justan0theruser joined #salt
03:55 fracklen joined #salt
04:01 justanotheruser joined #salt
04:08 edrocks joined #salt
04:26 yidhra joined #salt
04:31 fritz09 joined #salt
04:41 sjorge joined #salt
04:47 qwertyco joined #salt
04:48 onlyanegg joined #salt
04:57 aldevar joined #salt
05:00 aldevar1 joined #salt
05:05 aldevar joined #salt
05:16 tompte joined #salt
05:19 fracklen joined #salt
05:23 tobstone joined #salt
05:26 apofis joined #salt
05:37 preludedrew joined #salt
05:47 seffyroff joined #salt
06:00 impi joined #salt
06:11 felskrone joined #salt
06:12 cyteen joined #salt
06:14 Praematura joined #salt
06:16 yuhl______ joined #salt
06:22 aldevar joined #salt
06:33 EthPyth joined #salt
06:34 _KaszpiR_ joined #salt
06:37 fracklen joined #salt
06:41 jimklo joined #salt
06:50 zerocoolback joined #salt
06:51 zerocoolback joined #salt
06:51 zerocoolback joined #salt
06:52 jhauser joined #salt
06:57 Antiarc joined #salt
07:05 xet7 joined #salt
07:09 dnull joined #salt
07:14 CEH joined #salt
07:15 raul_ joined #salt
07:20 fracklen joined #salt
07:23 losh joined #salt
07:24 usernkey joined #salt
07:25 colttt joined #salt
07:29 darioleidi joined #salt
07:37 Rumbles joined #salt
07:37 JohnnyRun joined #salt
07:38 rayanimesh joined #salt
07:42 rayanimesh_ joined #salt
07:44 rayanimesh_ joined #salt
07:45 justan0theruser joined #salt
07:45 rayanimesh_ left #salt
07:46 rayanimesh joined #salt
07:47 rayanimesh Hi Food Fellas - is it right plaform to ask for salt related queries ?
07:48 MTecknology I think #ansible might be better, but you can sure try here.
07:49 coredumb rofl
07:50 sjorge joined #salt
07:50 rayanimesh :D. So my question is on using pillars.
07:53 rayanimesh I am using following pillar_roots config -  pillar_roots:      base:           - /home/centos/saltstack/pillars/base    qa:          - /home/centos/saltstack/pillars/qa
07:54 rayanimesh Okay - so I need to learn how to format messages here.
07:55 MTecknology dpaste.com
07:56 pbandark joined #salt
07:57 justanotheruser joined #salt
07:58 mikecmpbll joined #salt
07:58 MTecknology rayanimesh: If you don't know what you're doing, then just start with a single base environment and use hostname or role or something to pick those things from within pillar to be used in states
07:59 babilen Environment are the devil ;)
07:59 * hemebond is in bed with the devil :-P
07:59 hemebond Many, many beds.
08:00 MTecknology you're probably one of those apache "bed"-ers :P
08:00 hemebond You should all join me. It's nice and warm in here. There are hot-water-bottles too :-)
08:00 MTecknology awe :(
08:00 MTecknology I prefer room temp water..
08:00 MTecknology and I don't like heat
08:01 f3rno joined #salt
08:02 MTecknology If you're gonna do more than the base env, you should definitely keep top.sls in a different repo..
08:03 MTecknology I just think it gets really messy unless you have a team that actually understands git workflows
08:03 babilen hemebond: Admittedly I haven't tried them in a while .. maybe the new bedding is softer than the last
08:04 hemebond babilen: Far better than the puppet-straw bedding I was using ;-)
08:04 hemebond Not sure how much they've really changed.
08:04 hemebond It just matches my urge for clean namespacing.
08:05 hemebond *fulfills
08:05 babilen I think a bunch of bugs were addressed and, in particular, git based pillars aren't quite as bonkers as they were
08:05 hemebond Ah I don't use gitfs for anything yet.
08:05 MTecknology frick, it's 3am/1am already? :( ... g'night!
08:08 coredumb or 10am
08:10 Pulp joined #salt
08:15 Guest43 joined #salt
08:15 Guest43 left #salt
08:25 jimklo joined #salt
08:27 [CEH] joined #salt
08:27 coredumb do any of you use salt-cloud for usecases where you don't know in advance the type of machine you need to deploy?
08:27 cmichel joined #salt
08:27 coredumb I see salt-cloud quite like terraform in a way
08:28 coredumb where your map file is a way of declaring how your infrastructure looks like
08:29 rgrundstrom joined #salt
08:29 coredumb I'm in a position where I don't have a specific infrastructure, but more the need to provision servers on demand
08:30 jhauser joined #salt
08:30 rgrundstrom Hello everyone.
08:30 coredumb do any of you have that kind of salt-cloud use case and would be willing to discuss the point / share some examples?
08:30 coredumb hello rgrundstrom
08:32 hemebond coredumb: I don't use a map.
08:32 hemebond I have profiles and just create instances when I need them.
08:33 hemebond Profiles, like, public medium-sized instance.
08:33 Naresh joined #salt
08:33 coredumb hemebond: and you add/change your profiles on the fly depending on the need?
08:34 hemebond Yeah, you specify the profile in the command.
08:36 coredumb hemebond: do you set the instance hostname/id from the profile?
08:36 hemebond No, I specify that on the command line.
08:37 coredumb ok
08:37 coredumb but it can be specified in the profile file right?
08:37 hemebond Um. Probably.
08:37 hemebond Personally I use a custom runner to create instances.
08:38 hemebond Because I can't have salt-cloud trying to do the installation/deployment of salt-minion.
08:38 hemebond But it uses salt cloud underneath.
08:38 coredumb interesting
08:38 coredumb I have to see how to integrate that in my workflow
08:39 N-Mi joined #salt
08:39 N-Mi joined #salt
08:41 Inveracity joined #salt
08:43 Praematura joined #salt
08:51 Mattch joined #salt
08:52 evle1 joined #salt
09:01 felskrone is there a way to reload runners without restarting the master?
09:03 hemebond felskrone: Are they not reloaded automatically?
09:03 hemebond I don't think I restart my master when I change them.
09:06 felskrone hemebond: you're right, it just takes short while, maybe its the maintenance process, thx!
09:15 hemebond Anyone know if they're going to provide 2016.3.6 packages for Debian Stretch?
09:26 babilen It's the plan, but there are issues obviously
09:27 babilen For example: Stretch was released out of the blue and nobody expected that ;)
09:27 babilen https://github.com/saltstack/salt-pack/issues/341 is the only explanation I found
09:30 zerocoolback joined #salt
09:39 babilen hemebond: I'm also not sure if packages for all branches will be produced, but https://github.com/saltstack/salt-pack/issues/331 seems to refer only to 2016.11.6
09:39 Guest73 joined #salt
09:42 zerocoolback joined #salt
09:44 hemebond "Stretch was released out of the blue and nobody expected that ;)" :-D
09:44 hemebond Hmm. I should probably look at upgrading to 2016.11
09:44 hemebond I guess I'll have to figure out how they broke EC2 support.
09:46 hemebond Oo, P3 open for over a year now.
09:48 * rgrundstrom is looking at his own spagetti code.... *sigh*
09:49 hemebond rgrundstrom: As long as you put a docstring saying what the functions do, people will be able to figure it out.
09:49 zerocoolback joined #salt
09:50 hemebond Trying to guess the purpose of a function from its name and the random variables it manipulates is a pain in the arse.
09:50 zerocoolback joined #salt
09:53 rgrundstrom hemebond: I sent you a message in private.
10:09 EthPyth joined #salt
10:09 EthPyth joined #salt
10:13 edrocks joined #salt
10:14 zerocoolback joined #salt
10:21 hemebond Ah, I didn't realise your spaghetti was Jinja :-)
10:21 hemebond That could definitely be clearer :-)
10:24 fracklen joined #salt
10:37 alekhya joined #salt
10:43 Electron^- joined #salt
10:45 alekhya_ joined #salt
10:52 Electron^- joined #salt
10:58 zulutango joined #salt
11:05 Electron^- joined #salt
11:06 ecdhe joined #salt
11:11 zerocool_ joined #salt
11:11 EthPyth joined #salt
11:14 CEH joined #salt
11:32 rgrundstrom hemebond: You still here?
11:33 lorengordon joined #salt
11:45 hemebond yup
11:45 hemebond Barely.
11:45 hemebond rgrundstrom: ^
11:49 megamaced joined #salt
11:52 zerocoolback joined #salt
11:52 EthPyth joined #salt
11:53 rgrundstrom hemebond: Im sitting here to try and make it better...
11:53 rgrundstrom Not an easy task.
11:53 babilen Paste it if you want others to take a look
11:55 zerocoolback joined #salt
11:56 thinkt4nk joined #salt
11:59 rgrundstrom babilen: https://gist.github.com/anonymous/7f18b5ed33bc84cb661caa616ac0229e#file-gistfile1-txt
12:02 rgrundstrom Can i use an 'unless:' on 'pkgrepo.managed:'?
12:03 megamaced Hi, I am having some trouble trying to add a domain user to a group using group.present. I think the backslash might be causing some problems? https://gist.github.com/megamaced/a4bf9bfe39dd42e9bd868732e9f2fb2a
12:03 megamaced this is on Linux btw
12:04 megamaced using samba winbind
12:04 hemebond rgrundstrom: Yes you can.
12:05 hemebond megamaced: Try putting the value in double quotes
12:05 hemebond i.e., - "DOMAIN\user"
12:05 megamaced ok will try
12:06 megamaced hemebond: I got "Rendering SLS 'base:common.etc.sudoers.test' failed: found unknown escape character 'm'; line 35"
12:13 hemebond megamaced: Can you add DOMAIN\user to sudoers?
12:14 megamaced manually yes it works fine
12:14 hemebond You could try escaping it yourself as well.
12:14 hemebond - "DOMAIN\\user"
12:15 megamaced If I do that then it tries DOMAIN\\\\user
12:15 hemebond Hmm.
12:16 megamaced ok I get some very odd behaviour. I tried single quote and 1 backslash 'DOMAIN\user' and it worked. Then I removed the user from wheel and tried the salt call again, but it failed!
12:20 _KaszpiR_ joined #salt
12:21 LeProvokateur joined #salt
12:22 daks joined #salt
12:22 babilen rgrundstrom: https://github.com/saltstack-formulas/salt-formula/tree/master/salt/pkgrepo
12:23 babilen rgrundstrom: The magic happens here: https://github.com/saltstack-formulas/salt-formula/blob/master/salt/map.jinja#L65
12:28 Hybrid joined #salt
12:29 LeProvokateur joined #salt
12:30 daks joined #salt
12:31 gmoro joined #salt
12:32 _JZ_ joined #salt
12:34 impi joined #salt
12:34 Brew joined #salt
12:36 noobiedubie joined #salt
12:37 LondonAppDev joined #salt
12:41 numkem joined #salt
12:41 daks joined #salt
12:44 daks joined #salt
12:45 xet7 joined #salt
12:47 edrocks joined #salt
12:49 daks joined #salt
12:49 Ahlee joined #salt
12:51 jdipierro joined #salt
12:54 dxiri joined #salt
12:56 rgrundstrom babilen: Original: https://gist.github.com/anonymous/7f18b5ed33bc84cb661caa616ac0229e
12:57 rgrundstrom babilen: New version (untested): https://gist.github.com/anonymous/ac4836e17da99c9735017b0a8bc8694f#file-gistfile1-txt
12:58 LeProvokateur joined #salt
12:59 daks_ joined #salt
12:59 daks_ hello
13:00 daks_ when creating a formula, i know how to use a map.jinja file to change options depending of os_family grain (like Debian, Redhat, Arch...)
13:00 JohnnyRun joined #salt
13:00 daks_ is there any possibility to also filter on lsb_distrib_codename (like jessie, stretch) ?
13:01 daks_ (or oscodename which looks the same)
13:01 rgrundstrom babilen: ignore... Ive spotted problems allready.
13:02 coredumb daks_: why not that's just grain matching anyway
13:04 daks_ coredumb: i imagine it's possible, but all map.jinja I saw (and wrote) never mention the grain used to filter, like https://github.com/saltstack-formulas/collectd-formula/blob/master/collectd/map.jinja#L1
13:05 daks_ so i wonder how 1. to specify which grain to use, and 2. how to filter on os_family AND oscodename
13:05 dxiri joined #salt
13:06 hemebond left #salt
13:08 lorengordon daks_: you can nest grains.filter_by calls, and specify the `grain` argument to modify which grain it matches on
13:09 daks_ ok, didn't know that
13:09 lorengordon https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.grains.html#salt.modules.grains.filter_by
13:09 daks_ oh, didn't saw this section, with parameters to filter_by()
13:09 daks_ thanks :)
13:15 Pulp joined #salt
13:15 nku can i get info which state a minion is currently running? i have it running in debug mode, but the last state shouldn't take more than a second, but the minion simply doesn't return..
13:21 asyncsec joined #salt
13:22 thinkt4nk joined #salt
13:24 evle1 joined #salt
13:32 cgiroua joined #salt
13:33 jdipierro nku: You can hit it with test.ping and see if it replies. Or the `manage.up` runner command: https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.manage.html#salt.runners.manage.up
13:37 sjorge joined #salt
13:38 dxiri joined #salt
13:38 frankxyz joined #salt
13:41 racooper joined #salt
13:55 pbandark1 joined #salt
13:57 asterisc joined #salt
13:57 asterisc is there a way to configure the path for /srv/salt/_grains custom grains?
14:03 jdipierro asterisc I don't think so directly.. But you might be able to use a secondary file_root to load _grains from somewhere else
14:03 edrocks joined #salt
14:05 GMAzrael_ joined #salt
14:06 GMAzrael_ joined #salt
14:07 asterisc jdipierro: things is - it works in my installed version of salt, but doesn't work on my dev-branch (I did clone the github repository of salt and use their instructions there)
14:07 PatrolDoom joined #salt
14:13 frankxyz joined #salt
14:17 GMAzrael joined #salt
14:17 absolutejam Guys and gals
14:17 GMAzrael joined #salt
14:17 absolutejam what's the salte equivalent to assemble: in ansible?
14:17 absolutejam Salt*
14:18 fracklen joined #salt
14:19 jdipierro absolutejam I haven't used it myself but I believe you want the file.accumulated state: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.accumulated
14:19 GMAzrael joined #salt
14:19 bearing joined #salt
14:20 absolutejam Hm, I saw that but I wasn't sure it was right
14:20 absolutejam Essentially just need cat * > foo
14:21 absolutejam let me give it a go
14:21 GMAzrael_ joined #salt
14:21 bearing left #salt
14:22 GMAzrael joined #salt
14:23 GMAzrael_ joined #salt
14:23 frankxyz joined #salt
14:24 dxiri joined #salt
14:25 GMAzrael_ joined #salt
14:26 GMAzrael_ joined #salt
14:28 GMAzrael joined #salt
14:28 tom[] joined #salt
14:29 overyander joined #salt
14:29 ronnix joined #salt
14:29 frankxyz joined #salt
14:31 overyander I've noticed that when I run salt commands on my master it seems to take a while (3 - 5 minutes on average) to get a return. This happens when running something as simple as salt-run cache.grains or salt MINION test.ping for a minion on the same LAN as the master. it didn't use to be this slow, it used to be very responsive. i'm not sure where to start on diagnosing the issue. any suggestions?
14:32 overyander The master is version 2016.3.2-1 and is running on Centos 7
14:33 GMAzrael_ joined #salt
14:34 GMAzrael_ joined #salt
14:36 GMAzrael joined #salt
14:37 defswork overyander, even to a single minion ?
14:37 overyander defswork, yes
14:37 GMAzrael joined #salt
14:37 defswork does dns resolv ok on minion ?
14:37 tom[] joined #salt
14:39 overyander wow, that fixed it
14:39 overyander :P
14:40 overyander we changed DNS servers a while back and i forgot to update the ip in resolve.conf   thanks
14:41 defswork whenever things go slow always check DNS ;)
14:42 ccha2 On github there are saltstack-formulas and salt-formulas. why there are 2 projects?
14:43 frankxyz joined #salt
14:55 edrocks does salt have anything for sending alerts when say your harddrive is x% full? Wondering if salt can/should do this or if I should setup prometheus
14:57 LeProvokateur joined #salt
14:57 jdipierro edrocks You might be able to use the Beacon system combined with events/the Reactor for that: https://docs.saltstack.com/en/latest/topics/beacons/
14:58 jimklo joined #salt
14:58 jdipierro However I don't think I'd recommend it :P Prometheus is pretty great
14:59 edrocks yea, idk about this
15:01 NotBobDole joined #salt
15:03 jf_sebastian is it possible to just select and display one of the dictionary values if a
15:03 jf_sebastian *of a command?
15:04 edrocks jdipierro: looks like it will work with the diskusage beacon and using a state to send an email(which I already have). idk how this handles repeat overages if it's checking every second or minute though(I'd get a million emails)
15:04 jf_sebastian e.g. I'm playing with the napalm module, and I'd like to just grab the remote_system_name value out of the net.lldp output
15:05 jdipierro jf_sebastian I don't think there's a salt-native way to do that but you could use `--out=json --static` and pipe to the jq utility
15:05 JohnnyRun joined #salt
15:07 jf_sebastian gotcha, thank you
15:10 tapoxi edrocks: i've been looking into that. beacon or nagios exec module
15:10 tapoxi I run sensu and I keep debating ripping it out since salt does exactly the same thing
15:11 onlyanegg joined #salt
15:11 edrocks only downside is you don't get any graphs and my above email issue which could be solved with scripts to track last sent time or a higher check interval
15:12 neveragny joined #salt
15:12 jdipierro I like Sensu. It makes sense to me to use a system dedicated to monitoring. You get features like silencing, alerting only after X failures, etc.
15:12 edrocks I'm kind of leaning towards setting up prometheus so I can get graphs with grafana and alerts via prom
15:12 edrocks how does sensu compare to prometheus? I know prom is the new hot stuff but sometimes that has lots of issues
15:14 jdipierro At my last job we actually used both. Sensu for alerting and Prometheus for the grafana graphs. I don't think you can get those out of sensu? I find Sensu a lot easier to setup and maintain, but Prometheus has some cool extras like using linear regression to alert when the disk "will be full in 4 hours" rather than just "Oh, disk is at 70%.. better do something!"
15:16 neveragny joined #salt
15:19 fracklen joined #salt
15:21 Praematura joined #salt
15:24 sp0097 joined #salt
15:27 evle joined #salt
15:32 dyasny joined #salt
15:33 rgrundstrom When it comes to monitoring stuff I would say you should have a look at Zabbix
15:34 rgrundstrom Good and versatile monitoring tool with graphs if you want :)
15:34 aldevar left #salt
15:36 losh joined #salt
15:36 rgrundstrom babilen: are you still around?
15:40 scooby2 isnt there a simple way to match on hostname? if blah in hostname list of hosts. My google foo is failing me
15:41 rgrundstrom scooby2: How do you mean match an hostname? Against what?
15:42 scooby2 in my top.sls file. I just realized I need to exclude a few hostnames from running things.
15:43 zerocoolback joined #salt
15:46 dxiri joined #salt
15:46 jdipierro scooby2 The topfile uses hostname globbing by default
15:48 scooby2 k
15:48 sarcasticadmin joined #salt
15:53 jimklo joined #salt
15:56 aneeshusa joined #salt
15:57 tiwula joined #salt
16:03 saltyboss joined #salt
16:05 woodtablet joined #salt
16:07 ronnix joined #salt
16:13 aneeshusa joined #salt
16:14 aneeshusa joined #salt
16:18 jeffspeff joined #salt
16:18 scelestic joined #salt
16:18 saltyboss hi all, I'm a salt noob and about to get started with salt OSS but was just wondering whether there is puppet forge equivalent for salt.  Is there such a thing?
16:19 Guest73 joined #salt
16:20 Guest73 joined #salt
16:23 evle joined #salt
16:29 scelestic i might have missed something but how can i source data from a file on the minion other than using cmd.run and do cat /some/file?
16:35 tapoxi saltyboss: https://github.com/saltstack-formulas
16:36 saltyboss tapoxi thnx very much
16:36 tapoxi saltyboss: no problem, see also https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
16:36 saltyboss tapoxi: coooool. I will take a look
16:37 fxhp joined #salt
16:41 edrocks joined #salt
16:45 relidy joined #salt
16:56 gtmanfred scelestic: what do you mean by `source data` ?
16:56 gtmanfred just get the minion to return it?
17:00 ujjain joined #salt
17:00 ujjain joined #salt
17:00 gtmanfred if you are trying to compare files across minions you could use the survey runner
17:04 Pyro_ joined #salt
17:04 brasticstack joined #salt
17:17 scelestic gtmanfred: yes to use the data that's in the file, like for example passwords
17:17 godber joined #salt
17:19 jimklo joined #salt
17:19 Slimmons joined #salt
17:22 f3rno joined #salt
17:23 impi joined #salt
17:32 Slimmons joined #salt
17:32 socket- joined #salt
17:35 camelcamel joined #salt
17:36 PatrolDoom joined #salt
17:39 censorshipwreck joined #salt
17:51 jimklo joined #salt
17:54 jimklo joined #salt
17:54 f3rno joined #salt
18:05 ecdhe joined #salt
18:09 Praematura joined #salt
18:10 fracklen joined #salt
18:15 druonysus joined #salt
18:15 druonysus joined #salt
18:18 jrgochan joined #salt
18:20 dyasny joined #salt
18:26 sp0097 left #salt
18:28 jauz Anyone here using Bitbucket going to try any integrations like this? - https://blog.bitbucket.org/2015/12/02/ship-faster-with-bitbucket-integrations-now-available-for-aws-azure-bamboo-and-more/?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=bitbucket_product-digest-five&amp;jobid=102278026&amp;subid=1168262883
18:28 aldevar joined #salt
18:30 jauz Err #wrongchannel
18:42 nixjdm joined #salt
18:42 ChubYann joined #salt
18:51 Trauma joined #salt
18:56 sp0097 joined #salt
19:00 Pyro_ joined #salt
19:00 ahrs joined #salt
19:08 NotBobDole joined #salt
19:10 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.6 <+> 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 <+> The call for speakers for SaltConf17 is now open: http://tinyurl.com/SaltConf17
19:10 Brew joined #salt
19:11 gtmanfred scelestic: i am not aware of a way to do that, but i would recommend storing your passwords in pillar files instead of in files on the minions filesystem.  Otherwise, the easiest way would be to write a custom module that can take in a file in the correct format, process it and return what you want
19:12 gtmanfred i am not aware of a salt module that does that right this second
19:12 gtmanfred you could also write the salt state using one of the py* renderers
19:12 gtmanfred if it is in yaml or json, you could use the {% load_json/yaml %} filter
19:26 gmoro joined #salt
19:27 jimklo joined #salt
19:28 oida_ joined #salt
19:30 osmola joined #salt
19:32 hashwagon joined #salt
19:34 Lionel_Debroux_ joined #salt
19:35 Lionel_Debroux_ joined #salt
19:37 Aleks3Y joined #salt
19:38 noobiedubie joined #salt
19:42 lordcirth_work In https://github.com/saltstack/salt/issues/570 people talk about supposedly reloading nodegroups without a restart but this has never worked for me
19:46 jimklo joined #salt
19:47 jimklo joined #salt
19:48 absolutejam I don't really understand file.accumulated in the sense of merging arbitrary files *shrug*
19:48 absolutejam Might just write a file.assembled method
19:49 absolutejam jdipierro: Is prometheus as good as people say?
19:50 absolutejam I'm using Sensu, Telegraf (-> InfluxDB -> Grafana), and Winlogbeat for my 3 core minitoring aspects
19:50 dstensnes hello
19:50 dstensnes so....
19:50 dstensnes salt.states.pkgrepo
19:51 dstensnes where has that gone? It's no longer in the documentation for 2016.11.6?
19:51 dstensnes is it deprecated?
19:51 nicksloan joined #salt
19:51 absolutejam Sure it was there the other day, unless I was on develop
19:52 dstensnes i'm checking the documentation pages now
19:52 dstensnes https://docs.saltstack.com/en/latest/ref/states/all/index.html
19:52 dstensnes it's there, but not clickable
19:52 absolutejam It's blank if you go directly to it too
19:53 dstensnes yes, i noticed
19:53 dstensnes it's there for 2016.3
19:53 dstensnes it's there for 2016.3.6
19:53 major when is 2017 being released? :P
19:53 MTecknology major: 6 months and 28 days ago
19:54 dstensnes MTecknology: error...
19:54 MTecknology I kinda expected to see 2017.5.0 out already...
19:54 major heh
19:55 MTecknology but... I feel confident any delay is because of QA and I'm okay with that.
19:55 absolutejam Anyone got any nuggets of wisdom regarding file.accumulated
19:55 absolutejam It's going over my head
19:55 MTecknology absolutejam: you probably don't need it and you're probably over-complicating your problem
19:56 absolutejam I'm just trying to replicate `assemble` from Ansible
19:56 absolutejam Merging config files, a la conf.d
19:56 absolutejam Guess I could just shell out, but it seems a bit naughty
19:57 nixjdm joined #salt
19:59 absolutejam I'm basically trying to port an Ansible role I wrote a little while back
19:59 absolutejam it was a bit rough around the edges but does what I needed
20:01 ronnix joined #salt
20:06 aneeshusa joined #salt
20:09 onovy joined #salt
20:10 ssplatt joined #salt
20:10 circ-user-YALqW joined #salt
20:11 ssplatt anyone running into “curl: (35) Unknown SSL protocol error in connection to bootstrap.saltstack.org:443 “ in saltbootstrap today?
20:11 ssplatt got a workaround?
20:16 edrocks joined #salt
20:16 brasticstack joined #salt
20:17 mbroadhead joined #salt
20:17 ssplatt trying to figur eout if its just travis-ci or what
20:18 mbroadhead is it possible to namespace your execution modules like: _modules/mynamespace/mymodule/__init__.py ? Whenever I try to run a module that is two levels deep like this, i get 'mynamespace.mymodule.myfunction' is not available
20:19 onlyanegg dstensnes: I'm seeing the same thing for rest_cherrypy - it's empty in the 2016.11.6 docs
20:22 dstensnes hmm, weird
20:22 dstensnes is it in the "develop" version of the docs?
20:22 brasticstack left #salt
20:23 brasticstack joined #salt
20:23 dstensnes pkgrepo.managed messed up my sources.list file
20:23 dstensnes it forgot about a newline, it seems
20:23 dstensnes so two lines got smashed together into one
20:24 brasticstack re the salt bootstrap: the following worked for me earlier and is still working: curl -L https://bootstrap.saltstack.com -o install_salt.sh
20:25 brasticstack (sorry if I missed part of the convo, had to register my nick)
20:26 onlyanegg dstensnes: yeah, it's in develop and 2016.3
20:26 dstensnes onlyanegg: aha, then probably just the same glitch that messed up state.pkgrepo then....
20:28 ecdhe joined #salt
20:28 ecdhe joined #salt
20:36 gmoro joined #salt
20:37 ssplatt now i’m getting “curl: (35) error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error”  good times.  still hunting...
20:43 noobiedubie ssplat what command are you using
20:44 ssplatt travis-ci, its trying to install salt via bootstrap in docker
20:44 fracklen joined #salt
20:44 ssplatt https://travis-ci.org/ssplatt/artifactory-formula/jobs/248114516
20:44 noobiedubie no yea but i mean curl command wise
20:45 ssplatt https://travis-ci.org/ssplatt/artifactory-formula/jobs/248114516#L1031
20:45 ssplatt whatever the official bootstrap script is doing...
20:45 ssplatt i’m not hadn crafting it
20:46 noobiedubie wait are you download the script or running the bootstrap script when you get that error
20:46 noobiedubie downloading*
20:48 ssplatt hmmm. ok yeah that looks like it. so maybe it’s kitche-salt that’s causing the issue
20:49 Bock joined #salt
20:49 mikecmpbll joined #salt
20:49 noobiedubie can it handle redirects?
20:49 Pyro_ joined #salt
20:50 noobiedubie try using the actual bootstrap url that it redirects too
20:50 noobiedubie could be trying to verify the certs against the wrong domain
20:53 Pyro_ joined #salt
20:55 ssplatt oh yeah salt released a new version of kitchen-salt that i don’thave locally, and mine works...
20:56 ssplatt pretty sure its a kitchen-salt issue.
20:57 nixjdm joined #salt
21:07 gtmanfred lordcirth_work: you def cannot reload node groups without a master restart
21:07 gtmanfred we need that sighup bug fixed, there has been some talk about it recently internally
21:07 lordcirth_work gtmanfred, that's what I thought, thanks
21:08 lordcirth_work I'd like to be able to add machines to nodegroups via API from our inventory
21:11 hemebond joined #salt
21:15 gtmanfred :+1: that issue :)
21:15 gtmanfred it is on a list of things that would be nice to have, we just have a ton of other stuff right now unfortunately
21:17 Praematura_ joined #salt
21:24 Pyro_ joined #salt
21:25 swa_work joined #salt
21:29 skidder joined #salt
21:57 lorengordon joined #salt
21:57 * MajObviousman +1s the sighup bug
21:58 nixjdm joined #salt
22:00 MajObviousman is SaltConf in Salt Lake City every year?
22:05 woodtablet left #salt
22:07 fracklen joined #salt
22:07 Pyro_ joined #salt
22:11 whytewolf i think so
22:34 MajObviousman I understand why the vmware module is ... rough
22:34 * MajObviousman is digging into the vSphere API
22:34 MajObviousman someone needs to nuke this thing from orbit
22:37 whytewolf i agree someone needs to nuke vmware from odbit
22:37 whytewolf :P
22:37 ProT-0-TypE joined #salt
22:37 whytewolf i have to deal with it as the hypervisor we use in openstack at work. it is .... painful
22:38 MajObviousman 6.5 the web-based UI has been a big improvement, buuuut there's some nasty bugs lurking under the surface
22:38 MajObviousman we've hard-locked vCenter unrecoverably a few times from innocuous network things
22:39 MajObviousman cloning an old 5.0-spec VM? Yeah, gonna crash
22:42 masber joined #salt
22:43 whytewolf we ran into a bug with virtual switches and teamed network cards. it would loop the arp requests back in on itself. causing routing to come undone.
22:44 whytewolf only fix was to not use teamed networking
22:45 ahrs joined #salt
22:48 nicksloan joined #salt
22:50 asyncsec joined #salt
23:07 guerby joined #salt
23:10 test joined #salt
23:21 wryfi is this style of md5 fingerprint supposed to work as a URL with source_hash (for file.managed, archive.extracted, etc)? https://dist.apache.org/repos/dist/release/kafka/0.10.2.1/kafka_2.12-0.10.2.1.tgz.md5
23:22 wryfi (i get this error: "Source hash https://dist.apache.org/repos/dist/release/kafka/0.10.2.1/kafka_2.12-0.10.2.1.tgz.md5 format is invalid. It must be in the format <hash type>=<hash>, or it must be a supported protocol: salt, http, https, ftp, swift, s3, file")
23:22 wryfi so i suppose not?
23:22 hemebond wryfi: The problem appears to be in your state.
23:23 hemebond That md5 file will work as a URL, but not if you just copy and paste the string over.
23:23 wryfi hmm, then i don't understand the error, as i have "source_hash: https://dist.apache.org/repos/dist/release/kafka/0.10.2.1/kafka_2.12-0.10.2.1.tgz.md5" in my state
23:24 wryfi that appears to be one of the "supported protocols" mentioned in the error text
23:24 wryfi (https)
23:24 hemebond Except that the MD5 string has spaces in it.
23:24 hemebond And a colon.
23:25 wryfi then the problem isn't my state, it's the file at that URL
23:25 wryfi that is what i was asking
23:25 wryfi i will hash it locally and use a md5=<hash> instead
23:25 hemebond Try putting md5=FAB4B35BA536938144489105CB0091E0
23:25 hemebond Is that actually md5?
23:25 hemebond Yeah, that'd be easier.
23:26 wryfi the kafka maintainers think so, it looks like a fingerprint rather than a hash, to me
23:26 hemebond Isn't that the same thing?
23:26 wryfi it is in fact the md5 checksum, with extra spaces and bad capitalization
23:27 wryfi MD5 (/Users/wryfi/Downloads/kafka_2.12-0.10.2.1.tgz) = fab4b35ba536938144489105cb0091e0
23:27 wryfi not helpful the way it's posted at that URL :(
23:29 cyborg-one joined #salt
23:31 aneeshusa joined #salt
23:36 al joined #salt
23:45 fracklen joined #salt
23:59 al joined #salt

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