Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-10-14

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

All times shown according to UTC.

Time Nick Message
00:22 numkem joined #salt
00:29 _aeris_ joined #salt
00:33 phileus0 joined #salt
00:35 pbandark joined #salt
00:35 phileus0 Hi...anyone know how to get salt-api to send salt arguments..ie salt -b 6 state.apply statename?
00:35 phileus0 or salt --async statename?
00:41 sh123124213 joined #salt
00:52 k_sze[work] joined #salt
00:55 justan0theruser joined #salt
01:00 schasi joined #salt
01:02 athaller joined #salt
01:07 phileus0 joined #salt
01:08 ry joined #salt
01:19 phileus0 joined #salt
01:21 phileus0 joined #salt
01:24 pbandark joined #salt
01:36 sh123124213 joined #salt
01:54 whytewolf phileus0: start reading here https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html#usage then continue on to https://docs.saltstack.com/en/latest/ref/clients/index.html#salt.client.LocalClient.cmd_async and https://docs.saltstack.com/en/latest/ref/clients/index.html#salt.client.LocalClient.cmd_batch
01:56 ilbot3 joined #salt
01:56 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 <+> We are volunteers and may not have immediate answers
01:58 onlyanegg joined #salt
02:14 skatz joined #salt
02:14 skatz_ joined #salt
02:28 Sam___ joined #salt
02:31 phileus0 joined #salt
02:41 Aikar I defined 2 entries in my pillar_roots, i put a top.sls in there that has the same as the first folder style, which the included sls file has a key: |\n<data> format - applying state says that pillar doesnt have key
02:47 onlyanegg joined #salt
02:50 Aikar https://i.imgur.com/91G683T.png
02:51 jeblair joined #salt
02:59 stanchan joined #salt
03:11 Aikar adding - core_sshfs_key to the first pillar top.sls causes a "minion function caused an exception"
03:11 Aikar but i dont get any stack
03:12 Aikar well useful stack
03:12 onlyanegg joined #salt
03:19 Aikar ok weird restarted minion to changel og level and magically works now
03:22 joecrowe joined #salt
04:12 Aikar joined #salt
04:23 evle1 joined #salt
04:24 Aikar ugh i cant find a ppa to get updated openssh server :/
04:24 Aikar I want to do Include /etc/ssh/ssh_config.d/* but thats not until OpenSSH 7.3, so that I can have states conditionally add .d files
04:33 doubletwist So to people set up a regular cron job to do a "salt '*' state.apply" to run regularly to enforce configurations?
04:33 major doubletwist, or run a minion...
04:33 doubletwist Or is there another/better way to ensure regular enforcement of configs? That's the one [and only] thing I liked about puppet is that it constantly/automatically enforced the config
04:34 Aikar doubletwist: salt-call state.highstate ?
04:34 Aikar in the minion itself, use salt-call
04:34 doubletwist What's the advantage of that [cron jobs on all minions to pull config?] vs a single cron job at the master to push config?
04:34 whytewolf doubletwist: https://docs.saltstack.com/en/latest/topics/jobs/#scheduling-jobs
04:34 oida joined #salt
04:35 Aikar doubletwist: *shrug* i guess thats valid
04:39 justanotheruser joined #salt
04:43 major doubletwist, run it all via salt-ssh then?
04:43 doubletwist I recognize that there's multiple ways to do it
04:44 doubletwist Was just wondering how common it was and if the was any significantly preferred methods.
04:44 shalkie joined #salt
04:44 doubletwist In my case, I don't think load is going to be a huge factor. There will only be about 200 minions across 2 datacenters.
04:45 major one of the things I disliked about puppet was the ability for an agent to not be running
04:45 major which is also possible with salt
04:45 major I wouldn't say that either one has some leg up over the other in enforcing a config in that regard, except maybe salt-proxy and salt-ssh
04:45 Aikar joined #salt
04:45 Aikar joined #salt
04:45 major and ansible
04:46 doubletwist I would think it's just as easy for sshd to not be running as it is for salt-minion to not be running. And proper monitoring will notify you of either before it becomes a problem
04:46 major if a puppet agent or a salt minion fail to contact the master in a timely manner then the client is simply out of date
04:47 major yah .. sort of what I guess I was getting at in the end .. the only real solution to it all is monitoring to make certain they are in sync
04:47 hackel joined #salt
04:48 major also .. in my experience .. salt minions tend to apply the configs almost "instantly" where puppet agents tend to have significant latency
04:49 doubletwist yeah that's one of the things I hated about puppet
04:49 major like .. if I git-push into the repo, the minion is usually updated before I can switch my VC and check the status by hand
04:51 SamYaple is there anyway to run a module from a venv?
04:53 zerocool_ joined #salt
04:59 phileus0 joined #salt
05:04 Aikar mount.mounted keeps detecting a change in options :/
05:06 Aikar Forced unmount and mount because options (exec) changed
05:06 Aikar - opts: defaults,user,users,_netdev,noatime,auto,uid=1000,gid=1000,exec,allow_other,reconnect
05:06 Aikar everytime i run the state it shows that
05:09 diamvw joined #salt
05:12 Aikar i think its cause the entry in mount -l doesnt match
05:12 Aikar i took off exec, now it complains about gid
05:12 Aikar mount -l shows  (rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other)
05:18 Bock joined #salt
05:20 zerocool_ joined #salt
05:32 Bock joined #salt
05:34 omie888777 joined #salt
05:34 sh123124213 joined #salt
05:47 Bryson joined #salt
05:47 Bock joined #salt
05:55 CHIPPY joined #salt
05:56 Bock joined #salt
06:02 jhujhiti joined #salt
06:24 Bryson joined #salt
06:33 icebal joined #salt
06:37 CHIPPY left #salt
06:39 sh123124213 joined #salt
06:41 icebal joined #salt
07:36 nona joined #salt
07:45 zerocool_ joined #salt
07:49 zerocool_ joined #salt
07:57 icebal joined #salt
08:11 Bryson joined #salt
08:13 zulutango joined #salt
09:00 ahrs joined #salt
09:42 J0hnSteel joined #salt
10:29 aarontc joined #salt
11:40 tyler-baker joined #salt
11:58 XenophonF major: import_text takes pathnames, not SLS IDs
11:59 XenophonF relative to the Pillar/SLS root
12:08 tyler-baker joined #salt
12:15 Trauma joined #salt
12:29 evle1 joined #salt
12:42 fallenour joined #salt
12:45 fallenour test
12:46 fallenour salt minion active and working, but not responding to saltmaster, salt minion is also salt master, initial deploy for testing, not going well im afraid
13:02 XenophonF fallenour: any errors in the log files?
13:02 XenophonF and you accepted the minion key?
13:03 fallenour XenophonF: havent gotten in far enough to the tutorial to find that yet. Doing this from the perspective of a student for colleagues of mine. If I havent read it yet, it doesnt exist.
13:04 fallenour XenophonF: Yes, I have accepted the key, I have also checked to ensure salt minion and salt master processes are both running
13:04 fallenour XenophonF: I have also checked to confirm that the key is still accepted.
13:04 fallenour I have also added firewall rules to accept 4505 and 4506 tcp
13:06 fallenour XenophonF: salt-minion -l debug failed due to salt-minion process already running, so debug didnt work
13:07 fallenour XenophonF: finally reached tutorial spot for log files, reads as: master hostname "salt" not found. I am to assume its failing due to hostname issues, testing now
13:10 cyteen joined #salt
13:15 XenophonF which tutorial are you following?
13:16 fallenour XenophonF: The Digital Ocean Guide: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-salt-master-and-minion-servers-on-ubuntu-14-04    Upon further review however, I would recommend that people recommend against it. It is an incomplete guide.
13:17 fallenour I am now following the official guide: https://docs.saltstack.com/en/latest/ref/configuration/index.html#configuring-salt
13:17 Hybrid joined #salt
13:18 fallenour Break Fix: Change Hostname of Saltmaster from "<current hostname>" to "salt"
13:18 fallenour XenophonF: changed hostname from "<current hostname>" to "salt". Reboot applied. Can someone please inform the document maintainers that salt standard install expects the master to have a hostname of "salt" by default please?
13:18 fallenour its not annotated in either guide.
13:19 fallenour and can someone please let DO know they need to upgrade theirs? Im sure someone from there is hiding in here :P
13:19 fallenour XenophonF: How I found it in the log file was the following: "2017-10-14 13:12:57,911 [salt.minion      ][ERROR   ][2302] Master hostname: 'salt' not found or not responsive. Retrying in 30 seconds"
13:21 fallenour btw, salt is beasty. Is there a command list map or command list tree by chance?
13:37 Hybrid joined #salt
13:46 fallenour .
13:49 dendazen joined #salt
14:00 sh123124213 joined #salt
14:29 LotR joined #salt
14:43 mayk_ joined #salt
14:45 omie888777 joined #salt
15:07 Hybrid joined #salt
15:23 sh123124213 joined #salt
15:29 XenophonF it's a documented default
15:30 XenophonF and if you want an index to the docs, see https://docs.saltstack.com/en/latest/contents.html
15:30 XenophonF here's the CLI reference - https://docs.saltstack.com/en/latest/ref/cli/
15:30 XenophonF and here's the Salt module reference - https://docs.saltstack.com/en/latest/salt-modindex.html
15:31 XenophonF but I recommend you start here - https://docs.saltstack.com/en/getstarted/
15:31 XenophonF It's the big, friendly "Get Started" link at the top of docs.saltstack.com ;0
15:31 Hybrid joined #salt
15:31 XenophonF dammit that was supposed to be ;)
15:33 XenophonF Here's the Salt minion config doc, where the default `master: salt` setting is described - https://docs.saltstack.com/en/latest/ref/configuration/minion.html#master
15:35 XenophonF looks like you can contact the author of the Digital Ocean doc via Twitter @jmellingwood
15:37 XenophonF It's pretty clear from "Configuring Salt" that the IP addresses given are examples.
15:37 XenophonF Although they should use TEST-NET addresses instead of RFC 1918.  I'll put that on my "file a doc PR" list.
15:38 XenophonF Or you can claim the glory and file the PR on GitHub before me :)
15:38 XenophonF I wonder if there's an IPv6 equivalent to TEST-NET
15:41 XenophonF hm, doesn't look like it
15:54 major XenophonF, snap
16:08 xet7 joined #salt
16:13 ThomasJ joined #salt
16:29 tom[] to make a service.running state watch all the files under /etc/foo, should i use   /etc/foo: file.directory  and then  foo: service.running: - watch: - file: /etc/foo*
16:29 tom[] (assuming appropriate whitespace)
16:54 sh123124213 joined #salt
17:04 jojoreference joined #salt
17:04 jojoreference who named this
17:04 jojoreference channel
17:14 haagen6000 joined #salt
17:17 haagen6000 Im trying to use salt.states.mysql_query.run_file, but I'm getting "no such file or directory". I've tried to use the same file, as I use for file.managed which is found as it should be. But it this particular state, it says there is no such file. Is this some kind of bug? I wasnt able to google anything relevant.
17:18 Yamakaja joined #salt
17:28 stanchan joined #salt
17:31 schasi joined #salt
17:37 cyteen joined #salt
17:45 major whytewolf, soo .. there are some significant technical issues with the lxd-formula (before even the issue of weird syntax decisions and the use of { key: foo, value: bar } aspects .. like ..for one .. the lxd.remotes component doesn't actually 'lxd remote add' any of the remotes so far as I can tell
17:45 major you have to manually add them all first and it simply validates they are working
17:45 major which is weird .. because you can query existing remotes and all that to see if you need to add them
17:45 major bleh
17:54 cyteen joined #salt
17:57 major was there ever a "best practices" document drawn up for at least directory structures?
17:58 stanchan joined #salt
18:22 major is there some way to itterate over all the members of a group from w/in a state?
18:23 phpdave11 joined #salt
18:24 phpdave11 when using salt dockerng.sls_build, how can you pass in pillar data?
18:25 mayk joined #salt
18:26 Gareth phpdave11: pass it as a dictionary using the pillar keyword argument.  Something like pillar="{'key1': 'value1', 'key2': 'value2'}"
18:27 phpdave11 ok, so it can't read my pillar data from /srv/pillar?
18:27 Gareth You can store your pillar data in /srv/pillar or you can pass it on the command line.
18:29 phpdave11 everything works fine when i run salt.highstate normally on localhost, just that i am trying to get salt to build a docker container, using my existing states, pillars, and top files
18:30 phpdave11 so far i've only been able to get it to build a docker image with states that don't require pillar data
18:30 phpdave11 sudo salt-call --local --log-level=debug dockerng.sls_build my-test-docker-image base=my-xenaial-pyton-image mods=apache,php
18:39 nocaberi joined #salt
18:40 fatal_exception joined #salt
18:44 Gareth phpdave11: most likely it's the --local that is causing the issue.  Pillar data resides on the master and is targeted at minions.  With --local there is master...so likely no pillar values.
18:44 Gareth If you have a Salt master in place, try removing the --local
18:44 phpdave11 thanks ill give that a try
18:46 major soo .. I am playing with orchestrate ... and I am sort of curious how you would tie it to a normal highstate run
19:07 icebal joined #salt
19:11 lompik joined #salt
19:13 onlyaneg1 joined #salt
19:15 tom[] beside cmd, is there a state module that will do: systemctl daemon-reload ?
19:38 filthyG joined #salt
19:38 Trauma joined #salt
19:43 phileus0 joined #salt
19:53 Gareth tom[]: you can use the module.run state function then have it call the systemd module with systemctl_reload.
19:55 phileus0 joined #salt
20:12 omie888777 joined #salt
20:14 oida joined #salt
20:15 dxiri joined #salt
20:29 fatal_exception joined #salt
20:36 oida joined #salt
20:42 JAuz joined #salt
20:44 oida joined #salt
20:45 JawnAuz__ joined #salt
20:50 Oida joined #salt
21:03 onlyanegg joined #salt
21:24 KingJ joined #salt
21:34 zulutango joined #salt
21:36 sh123124213 joined #salt
21:43 mike25de joined #salt
21:43 LaProvokatrice joined #salt
21:43 cyborg-one joined #salt
21:45 sh123124213 joined #salt
21:56 sh123124213 joined #salt
22:25 aarontc joined #salt
22:46 schemanic joined #salt
22:47 schemanic anyone know any channels that are good for getting help with bash/curl?
22:54 phpdave11 i don't know, but whats your question?
22:59 teratoma #bash #curl
23:00 justanotheruser joined #salt
23:01 schemanic thanks
23:01 schemanic I just wanted to say to the people who hang out here, that your quality of respect is really appreciated.
23:03 schemanic I just asked for some help over at ##linux and basically got told that I didn't deserve an answer to my problem because some jackass decided I wasn't fit to fend for myself.
23:03 schemanic so, thank you #salt, for being decent human beings.
23:13 phpdave11 np
23:24 dvdmuckle joined #salt
23:32 laertus joined #salt
23:32 laertus left #salt
23:51 Antiarc joined #salt
23:59 olipov joined #salt

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