Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-12-21

| 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:03 cyteen_ joined #salt
00:21 zerocoolback joined #salt
00:23 rem5 joined #salt
00:29 zerocoolback joined #salt
00:32 rem5 joined #salt
00:44 DanyC joined #salt
00:47 cyteen_ joined #salt
00:59 onlyanegg joined #salt
01:03 pipps joined #salt
01:14 tobiasBora Hello,
01:14 tobiasBora I have a server that will need to use wifi.
01:15 tobiasBora I saw I can use this to configure network: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.network.html
01:15 tobiasBora how does it works under the hood? Does it needs network-manager installed, or does it use only basic file configuration?
01:15 onlyanegg joined #salt
01:15 tobiasBora and can it deal with wifi?
01:31 saltslackbridge <gtmanfred> it lays down jinja files
01:31 saltslackbridge <gtmanfred> so it just configures the /etc/sysconfig/network-scripts/ or /etc/network/interfaces or whatever files
01:32 saltslackbridge <gtmanfred> https://github.com/saltstack/salt/tree/2017.7/salt/templates
01:32 saltslackbridge <gtmanfred> rh_ip and debian_ip are in there
01:37 skinkitten joined #salt
01:41 rem5_ joined #salt
01:45 DanyC joined #salt
01:54 pipps joined #salt
02:03 Arendtse1 joined #salt
02:04 moy_ joined #salt
02:04 kuromagi^ joined #salt
02:04 munhitsu__ joined #salt
02:05 Awesomecase_ joined #salt
02:05 onlyanegg joined #salt
02:05 kwmiebach_ joined #salt
02:05 ToeSnacks_ joined #salt
02:05 demonkeeper joined #salt
02:06 echoe_ joined #salt
02:06 doubletwist- joined #salt
02:06 dev_tea_ joined #salt
02:07 pipps joined #salt
02:07 Hazelesque_ joined #salt
02:07 yidhra_ joined #salt
02:07 baffle_ joined #salt
02:07 skr0bul joined #salt
02:07 rubenb joined #salt
02:07 v12aml joined #salt
02:07 dankolbrs joined #salt
02:07 hoolio joined #salt
02:07 Armadillo joined #salt
02:07 Xevian joined #salt
02:07 dvdmuckle joined #salt
02:08 tom29739 joined #salt
02:08 tongpu joined #salt
02:08 ujjain joined #salt
02:08 ujjain joined #salt
02:08 ahammond joined #salt
02:09 cyteen_ joined #salt
02:09 averell joined #salt
02:10 qman__ joined #salt
02:12 ksa joined #salt
02:13 justanotheruser joined #salt
02:14 justanotheruser joined #salt
02:15 zerocoolback joined #salt
02:16 onlyanegg joined #salt
02:21 zerocoolback joined #salt
02:22 zerocoolback joined #salt
02:22 threwahway joined #salt
02:25 ahrs joined #salt
02:34 blackmamba left #salt
02:40 pipps joined #salt
02:42 shiranaihito joined #salt
02:57 ilbot3 joined #salt
02:57 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:03 masuberu joined #salt
03:09 zerocoolback joined #salt
03:12 Gilfoyle- Hey so I'm using salt-cloud -m and the map file I'm using say's that the profile defined in it doesn't exist. Despite there being a saltify.conf inside cloud.profiles.d/
03:13 Gilfoyle- Any clue what might be the error?
03:14 tiwula joined #salt
03:14 hemebond Gilfoyle-: Can you paste the configs for us to check?
03:14 Gilfoyle- Sure, one sec.
03:16 Gilfoyle- hemebond: http://paste.ubuntu.com/26224893/
03:16 Gilfoyle- http://paste.ubuntu.com/26224898/
03:17 Gilfoyle- http://paste.ubuntu.com/26224902/
03:17 hemebond Check your master log for errors are restarting salt-master; I think your use of "provider" is deprecated.
03:18 hemebond I think it's supposed to be "driver" now in the provider config. That's how it is for EC2.
03:19 Gilfoyle- Oh wait, yeah. Guess the guide needs to get updated.
03:19 hemebond Your map file has no reference to a profile.
03:19 hemebond I've only used Saltify once, so, trying to learn it now :-)
03:19 Gilfoyle- Huh, just following a guide on their website. Odd, thanks.
03:21 hemebond Oh I see how it links to profiles.
03:21 hemebond I'm not entire sure what the files are for each of those pastes you provided.
03:21 hemebond Is it map, profile, provider?
03:21 Gilfoyle- hemebond: First is the map file, profile, provider.
03:22 hemebond I think you have the profile and provider around the wrong way.
03:22 Gilfoyle- Oh?
03:22 hemebond At least according to the docs.
03:23 hemebond Your `saltify-config` has similar settings to the docs `my-saltify-config` provider.
03:24 vexati0n anyone else experience errors with the win_task module? Some tasks cause task.info to crash for no reason at all. https://i.imgur.com/vnE6YpX.png
03:25 Gilfoyle- hemebond: So I replaced provider with driver in saltiyfy.conf in cloud.providers.d/
03:25 hemebond Did you check if your profile has the settings of their provider?
03:26 hemebond e.g., do you have the config around the right way? It's difficult for me to tell without filenames in the pates.
03:26 hemebond *pastes
03:27 Gilfoyle- It looks like, the second paste saltify-config is the provider. The third paste is my profile that draws on saltify-config
03:28 hemebond Any errors in the master log after restarting?
03:29 Gilfoyle- Sec.
03:29 Gilfoyle- Master log is where?
03:30 hemebond /var/log/salt/master
03:30 hemebond Oh, actually it might only log an issue when you use salt-cloud.
03:31 hemebond And there is a separate cloud log file.
03:35 Gilfoyle- Fixed it.
03:36 hemebond Nice. What was the issue?
03:45 lompik joined #salt
03:47 major joined #salt
03:48 DanyC joined #salt
04:01 czchen joined #salt
04:02 gareth__ joined #salt
04:07 threwahway_ joined #salt
04:08 lkolstad joined #salt
04:17 masber joined #salt
04:17 threwahway joined #salt
04:43 Gilfoyle- hemebond: Replacing provider with driver in cloud.providers.d/salitfy.conf
04:51 onlyanegg joined #salt
04:54 hemebond 👍
05:10 mage__ joined #salt
05:12 wireknot joined #salt
05:12 descrepes_ joined #salt
05:13 fleaz joined #salt
05:22 Bochi joined #salt
05:23 zerocoolback joined #salt
05:45 DanyC joined #salt
05:52 onlyanegg joined #salt
05:55 rem5 joined #salt
05:59 LotR joined #salt
06:03 dograt joined #salt
06:14 nethershaw joined #salt
06:21 bd joined #salt
06:21 Psy0rz_ joined #salt
06:31 nethershaw joined #salt
06:31 v12aml joined #salt
06:31 kwmiebach joined #salt
06:31 Awesomecase joined #salt
06:31 swills joined #salt
06:31 vaelen joined #salt
06:31 basepi joined #salt
06:31 g3cko joined #salt
06:31 georgemarshall joined #salt
06:31 robinsmidsrod joined #salt
06:31 mbologna joined #salt
06:31 shalkie joined #salt
06:31 PFault joined #salt
06:31 rideh joined #salt
06:31 SteamWells joined #salt
06:31 djural joined #salt
06:31 johtso joined #salt
06:31 CheckYourSix joined #salt
06:31 dlloyd_ joined #salt
06:31 BiW joined #salt
06:31 magnuss joined #salt
06:31 Aikar joined #salt
06:31 phobosd__ joined #salt
06:31 magnus1 joined #salt
06:31 EvaSDK joined #salt
06:32 djural joined #salt
06:32 kwmiebach joined #salt
06:32 SteamWells joined #salt
06:33 johtso joined #salt
06:33 Awesomecase joined #salt
06:34 afics joined #salt
06:47 DanyC joined #salt
06:51 sayyid9000 joined #salt
06:54 pseudonymous joined #salt
06:54 RandyT joined #salt
06:54 RandyT joined #salt
07:12 DarkKnightCZ joined #salt
07:15 GothAck joined #salt
07:16 Ricardo1000 joined #salt
07:20 cro joined #salt
07:24 rideh joined #salt
07:24 v12aml joined #salt
07:24 basepi joined #salt
07:24 PFault joined #salt
07:24 magnuss joined #salt
07:24 magnus1 joined #salt
07:24 robinsmidsrod joined #salt
07:24 mbologna joined #salt
07:24 CheckYourSix joined #salt
07:24 Aikar joined #salt
07:24 nethershaw joined #salt
07:24 Aikar joined #salt
07:24 vaelen joined #salt
07:25 dlloyd_ joined #salt
07:25 EvaSDK joined #salt
07:25 g3cko joined #salt
07:25 shalkie joined #salt
07:25 phobosd__ joined #salt
07:25 BiW joined #salt
07:26 swills joined #salt
07:26 swills joined #salt
07:27 ReV013 joined #salt
07:28 threwahway_ joined #salt
07:28 georgemarshall joined #salt
07:44 threwahway joined #salt
07:52 Tucky joined #salt
07:53 onlyanegg joined #salt
08:02 Elsmorian joined #salt
08:09 esharpmajor joined #salt
08:11 aldevar joined #salt
08:16 Hybrid1 joined #salt
08:31 jhauser joined #salt
08:32 Arendtse1 left #salt
08:32 Arendtsen joined #salt
08:36 gn0me joined #salt
08:39 sol7 joined #salt
08:40 gn0me Hello :)
08:45 DanyC joined #salt
08:49 saltslackbridge <james> Anyone know where the salt schedule data is stored on a minion?
08:49 saltslackbridge <james> I can't delete 2 of the tasks on a minion from the master
08:49 saltslackbridge <james> and they're errorring
08:49 saltslackbridge <james> also, I've now discovered you can do it with pillar
08:50 zerocoolback joined #salt
09:02 DanyC joined #salt
09:09 onlyanegg joined #salt
09:17 mikecmpbll joined #salt
09:17 colegatron joined #salt
09:18 jhauser joined #salt
09:34 aldevar joined #salt
09:51 msn joined #salt
09:54 zerocoolback joined #salt
09:56 zerocoolback joined #salt
09:59 aldevar joined #salt
10:08 _KaszpiR_ joined #salt
10:21 onlyanegg joined #salt
10:28 om2 joined #salt
10:33 colegatron left #salt
10:37 aldevar1 joined #salt
10:44 ivan_ joined #salt
10:48 totallyunusednic joined #salt
11:03 threwahway_ joined #salt
11:03 totallyunusednic joined #salt
11:15 viq joined #salt
11:19 aldevar joined #salt
11:23 JohnnyRun joined #salt
11:26 kedare joined #salt
11:33 hoonetorg joined #salt
11:42 evle joined #salt
11:45 zerocoolback joined #salt
11:54 DanyC joined #salt
11:55 DanyC joined #salt
12:07 onlyanegg joined #salt
12:39 kedare_ joined #salt
12:41 sh123124213 joined #salt
12:45 kettlewell joined #salt
13:12 Nahual joined #salt
13:28 nethershaw joined #salt
13:32 DammitJim joined #salt
13:38 edrocks joined #salt
14:03 gh34 joined #salt
14:04 mchlumsky joined #salt
14:15 saltslackbridge <james> I just nuked it
14:15 saltslackbridge <james> Job done :white_check_mark:
14:28 dlloyd am i crazy in thinking that a state that specifies reload_grains: True would cause grain information to be reloaded from /etc/salt/grains, and that new grain information would be available to states executing after?
14:33 skinkitten joined #salt
14:41 beardedeagle joined #salt
14:50 saltslackbridge <gtmanfred> It won't be available to jinja
14:51 saltslackbridge <gtmanfred> But it will be available inside the state run of the rest of the states
14:51 saltslackbridge <gtmanfred> Remember, in a state run, all jinja is rendered first, then yaml, and then the states are run from the low dictionary
14:51 dlloyd ah
14:52 dlloyd that explains it
14:52 dlloyd is that per state or per run
14:52 saltslackbridge <gtmanfred> For the whole run
14:52 dlloyd ok
14:52 dlloyd yup, time to re-think this then
14:53 saltslackbridge <gtmanfred> All of the jinja in all the files is rendered first, then all the yaml until you have one big dictionary, that is called the low state data. And that is what is used in the state run
14:53 dlloyd makes sense, i guess i was just trying to cheat by populating and using grains in the same run
14:54 dlloyd thanks
14:54 saltslackbridge <gtmanfred> You can do that, but the state module has to use the data
14:54 dlloyd right, have a script that uses grains to include function calls, but thats in the jinja
14:55 saltslackbridge <gtmanfred> So you could write a custom state module that checks grains and then runs the __states__ object and just returns it id the grains are correct
14:55 dlloyd but the grains its using to determine which modules to run are all set in the first highstate, that also generates the final script
14:56 dlloyd so i guess i could convert that to a custom state
14:56 dlloyd to the experimentation cluster!
14:56 saltslackbridge <gtmanfred> You could also use the  orchestrate runner
14:56 dlloyd hmm, haven't played with that yet
14:58 dlloyd ah, fancy
14:58 dlloyd to be honest we havent really changed much of our salt workflow since 0.16.x :/
15:00 tiwula joined #salt
15:06 hammer065 joined #salt
15:09 kedare joined #salt
15:22 _val_ joined #salt
15:24 brokensyntax joined #salt
15:26 racooper joined #salt
15:38 ouemt joined #salt
15:41 wevanscfi joined #salt
15:41 elektrix joined #salt
15:43 gnomethrower joined #salt
15:44 ouemt from the command line what flag do I need to match 'not node1'
15:45 sol7 joined #salt
15:47 saltslackbridge <netcho> compount
15:47 saltslackbridge <netcho> `-C '*match-this* not node1'`
15:47 ReV013 joined #salt
15:48 ouemt thanks
15:50 mikecmpb_ joined #salt
15:51 onlyanegg joined #salt
15:52 saltslackbridge <gtmanfred> -C ‘*match-this* and not node1’
15:52 saltslackbridge <gtmanfred> gotta remember the and
15:52 saltslackbridge <gtmanfred> if you want to do multiple matches
15:52 saltslackbridge <netcho> should work withouth not also on only one match
15:53 saltslackbridge <gtmanfred> well, `-C 'not node1`'
15:53 zerocoolback joined #salt
15:53 saltslackbridge <netcho> `> salt -C '*qa* not *staging*' test.ping`
15:53 saltslackbridge <netcho> this works for me
15:53 saltslackbridge <gtmanfred> hrm, odd, i didn’t think it would
15:55 saltslackbridge <netcho> dunno, works for me :slightly_smiling_face:
15:58 _JZ_ joined #salt
15:59 ouemt -C 'not node1' worked
16:05 mikecmpbll joined #salt
16:16 hemebond joined #salt
16:19 saltslackbridge <james> Is there any info on rough pricing for enterprise?
16:19 saltslackbridge <james> Or is it purely bespoke?
16:28 tehsu joined #salt
16:29 tehsu anyone here use rackspace with salt-cloud know how to set security groups
16:30 saltslackbridge <gtmanfred> does rackspace finally have actual security groups?
16:33 saltslackbridge <netcho> is rackspace still a thing?
16:33 edrocks joined #salt
16:34 saltslackbridge <netcho> :troll:
16:34 saltslackbridge <netcho> @james afaik it depends on the number of minions
16:41 JawnAuz joined #salt
16:41 tehsu gtmanfred, seems so, have to go in and manually apply the group or its wide open
16:41 tehsu netcho, sadly
16:42 saltslackbridge <gtmanfred> When I worked there, you could only have security groups on core accounts, i know you can do security groups with the nova driver, not sure about the old openstack driver
16:43 saltslackbridge <gtmanfred> i just rewrote it to use shade instead of libcloud for the oxygen release, so you might try that one out.  https://docs.saltstack.com/en/develop/ref/clouds/all/salt.cloud.clouds.openstack.html
16:43 tehsu ok thanks
16:44 saltslackbridge <gtmanfred> make sure you install the correct package `rackspaceauth` to be able to use the api key https://docs.openstack.org/os-client-config/latest/user/vendor-support.html#rackspace
16:44 saltslackbridge <gtmanfred> (i think i wrote that part too)
16:44 saltslackbridge <gtmanfred> back when i was still working at rackspace
16:45 tehsu ok cool, thanks
16:56 onlyaneg1 joined #salt
17:01 swills joined #salt
17:02 mikecmpb_ joined #salt
17:03 zerocoolback joined #salt
17:05 pseudonymous joined #salt
17:20 cyteen_ joined #salt
17:20 swills joined #salt
17:20 swills joined #salt
17:20 swills_ joined #salt
17:48 DanyC joined #salt
17:54 DanyC joined #salt
17:55 DanyC_ joined #salt
17:59 Bochi joined #salt
18:02 cliluw joined #salt
18:12 Bochi joined #salt
18:20 sol7 joined #salt
18:25 onlyanegg joined #salt
18:34 viq joined #salt
19:03 pipps joined #salt
19:06 pipps joined #salt
19:11 Bochi joined #salt
19:11 DammitJim joined #salt
19:12 DammitJim is there a way to have a master VPN to a network and manage minions?
19:12 DammitJim what IP address would the minions use for the master?
19:25 _KaszpiR_ joined #salt
19:26 hemebond DammitJim: Whatever IP would get to the minions :-)
19:26 hemebond er, to the master I mean.
19:28 hemebond (it depends on the VPN, basically)
19:31 DammitJim right
19:31 DammitJim that's why I'm confused... maybe this is not a salt problem, but an openvpn problem
19:31 hemebond Yeah, nothing Salt-specific to worry about.
19:31 DammitJim I don't know what IP I have when I connect to the network
19:32 DammitJim I do need to configure the minions to have the master IP, though
19:32 hemebond Well it's really just about the routes
19:32 DammitJim does the salt-minion service stop running or does it just keep trying forever?
19:32 hemebond And the gateway that directs traffic through the VPN.
19:32 hemebond So you would likely use the same IP for all minions, but minions in the VPN would have their traffic routed through the VPN.
19:32 hemebond salt-minion is a service.
19:33 hemebond oh, it will just keep trying.
19:33 DammitJim right, does this service quit looking for a master?
19:33 hemebond (to find the master)
19:33 DammitJim got it, thanks!
19:33 hemebond As far as I know.
19:33 * MTecknology has openvpn setup as part of the bootstrap, and then it just uses DNS to find "salt" after connecting.
19:33 DammitJim this makes me "almost" set up my master on the dmz
19:33 hemebond Hopefully they've also fixed the bug with minions not re-resolving the master DNS when it can't find it.
19:34 DammitJim MTecknology, you mean, your master VPNs to the network and the minions just find the master?
19:34 MTecknology no
19:35 MTecknology https://i.imgur.com/V41Ak7D.png
19:36 wevanscfi joined #salt
19:36 DammitJim oh ok, your setup is the other way around
19:38 MTecknology https://gist.github.com/MTecknology/66ce7c7f148fc9da936bcf26cc572cd7
19:39 hemebond Wow. Is that apt purge cleaning up the official Debian Jessie AMI?
19:39 MTecknology DO
19:40 hemebond Ah
19:40 MTecknology I don't dick with AWS whenever I can avoid it, I'm sure I'd be stripping even more
19:42 ymasson joined #salt
19:50 pipps joined #salt
19:54 pipps99 joined #salt
19:56 pipps joined #salt
20:13 GrisKo joined #salt
20:16 viq joined #salt
20:30 pipps joined #salt
20:32 nomeed joined #salt
20:34 pseudonymous joined #salt
20:35 mikecmpbll joined #salt
20:35 kiorky joined #salt
20:35 kiorky joined #salt
20:50 sh123124213 joined #salt
20:52 skinkitten left #salt
20:56 ecdhe joined #salt
20:58 cyteen_ joined #salt
21:00 brokensyntax joined #salt
21:11 pipps joined #salt
21:14 sh123124213 joined #salt
21:23 sjorge joined #salt
21:37 coldbrewedbrew joined #salt
21:37 coldbrewedbrew joined #salt
21:37 coldbrewedbrew_ joined #salt
21:51 dfinn joined #salt
22:32 pipps joined #salt
22:43 SyntaxASI joined #salt
22:46 cyteen_ joined #salt
22:50 ecdhe joined #salt
22:56 pipps joined #salt
23:00 ecdhe joined #salt
23:01 Gilfoyle- Hey, does salt work over public ip's or private?
23:02 Gilfoyle- Because Ideally I'd like it over private.
23:02 hemebond Gilfoyle-: Any IP
23:02 hemebond As long as it can connect.
23:06 saltslackbridge <gtmanfred> even TCP over Avian Carriers?
23:07 Gilfoyle- hemebond: Any way to set it to do private only?
23:07 Gilfoyle- gtmanfred, Obviously.
23:08 JB joined #salt
23:08 saltslackbridge <gtmanfred> yes, tell the master to only bind to the private interface
23:09 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/configuration/master.html#interface
23:09 saltslackbridge <gtmanfred> then set the master: to that private ip
23:09 saltslackbridge <gtmanfred> on the minion configs*
23:10 JB left #salt
23:10 hemebond gtmanfred: Of course. Works just like salt-ssh :-)
23:15 mavhq joined #salt
23:16 pipps joined #salt
23:17 pipps99 joined #salt
23:18 JB joined #salt
23:19 pipps_ joined #salt
23:23 pipps joined #salt
23:24 rem5_ joined #salt
23:26 sjorge joined #salt
23:32 Gilfoyle- gtmanfred, will I have to provision new keys?
23:32 saltslackbridge <gtmanfred> it shouldn’t
23:35 hammer065 joined #salt
23:43 Gilfoyle- gtmanfred, if I have root login disabled in ssh will that affect salt at all?
23:43 Gilfoyle- It uses ssh right? Least I thought so.
23:43 saltslackbridge <gtmanfred> No
23:43 Gilfoyle- Gotcha, thanks.
23:44 Gilfoyle- So even if I have it running stuff as user root on my minions there'll be no problem?
23:44 saltslackbridge <gtmanfred> Yeah, nothing logs into master, the master communicates to the minions over zeromq
23:45 Gilfoyle- Cool, thought so. Wasn't sure.
23:51 zerocoolback joined #salt

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