Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-02-27

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

All times shown according to UTC.

Time Nick Message
00:03 ifutant joined #salt
00:05 gregory_grandboi joined #salt
00:11 newmanium_ joined #salt
00:13 oaken_chris joined #salt
00:20 jas02 joined #salt
00:20 vodik joined #salt
00:22 sh123124213 joined #salt
00:39 ifutant joined #salt
00:39 ifutant joined #salt
00:44 edrocks joined #salt
00:44 rem5_ joined #salt
00:52 fracklen joined #salt
01:09 chadhs joined #salt
01:35 sh123124213 joined #salt
01:47 ssplatt joined #salt
01:59 toastedpenguin joined #salt
02:01 hemebond joined #salt
02:07 ifutant joined #salt
02:15 ninjada joined #salt
02:17 madboxs joined #salt
02:18 chadhs joined #salt
02:21 jas02 joined #salt
02:27 ssplatt joined #salt
02:34 mpanetta joined #salt
02:46 ssplatt joined #salt
02:46 catpiggest joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.5, 2016.11.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ (please don't multiline paste into channel) <+> See also: #salt-devel, #salt-offtopic <+> Ask with patience as we are volunteers and may not have immediate answers
02:56 evle joined #salt
03:03 madboxs joined #salt
03:05 sh123124213 joined #salt
03:08 chadhs joined #salt
03:09 jeffspeff joined #salt
03:14 sh123124213 joined #salt
03:15 ifutant joined #salt
03:15 brousch__ joined #salt
03:23 jas02 joined #salt
03:45 JPT joined #salt
03:46 edrocks joined #salt
03:59 rdas joined #salt
03:59 leonkatz joined #salt
04:00 madboxs joined #salt
04:00 ivanjaros joined #salt
04:02 justanotheruser joined #salt
04:10 preludedrew joined #salt
04:23 jas02 joined #salt
04:45 sh123124213 joined #salt
05:09 chadhs joined #salt
05:14 leonkatz joined #salt
05:16 raspado joined #salt
05:27 rezroo joined #salt
05:45 sh123124213 joined #salt
05:47 justan0theruser joined #salt
06:12 angel_dark joined #salt
06:14 eseyman joined #salt
06:19 ninjada_ joined #salt
06:21 madboxs_ joined #salt
06:21 samodid joined #salt
06:23 karlthane joined #salt
06:30 ninjada joined #salt
06:32 felskrone joined #salt
06:35 jas02 joined #salt
06:49 edrocks joined #salt
06:55 madboxs joined #salt
06:56 colttt joined #salt
07:05 sriman joined #salt
07:06 sriman Hi, is there any equivalent module  as "Ansible register" in salt?
07:06 hemebond What does it do?
07:06 icebal joined #salt
07:06 sriman it will store the output when the state is executed
07:07 sriman and we can user stdout and changes
07:07 sriman we can user this in condition check
07:07 hemebond You can do that already via Jinja.
07:07 hemebond I've never tried to do it though.
07:08 ruxu joined #salt
07:09 gnomethrower joined #salt
07:10 sriman can u pass on command just to print stdout ?? (after executing state)
07:10 hemebond I don't really understand what you're asking.
07:12 karlthane joined #salt
07:13 felskrone joined #salt
07:23 aldevar joined #salt
07:24 ReV013 joined #salt
07:25 iggy there is the job log that stores the "output"
07:26 jagguli- joined #salt
07:28 icebal_ joined #salt
07:31 ninjada joined #salt
07:33 scristian joined #salt
07:39 Inveracity joined #salt
07:44 fracklen joined #salt
07:46 jagguli- joined #salt
07:49 karlthane joined #salt
07:49 ninjada joined #salt
07:53 darioleidi joined #salt
07:59 Inveracity joined #salt
08:05 samodid joined #salt
08:08 jas02 joined #salt
08:09 ninjada joined #salt
08:09 jhauser joined #salt
08:11 fracklen joined #salt
08:13 fracklen joined #salt
08:13 saintpablo joined #salt
08:15 ivanjaros joined #salt
08:23 ronnix joined #salt
08:24 jas02 joined #salt
08:29 kbaikov joined #salt
08:30 ninjada joined #salt
08:31 yuhl______ joined #salt
08:37 ProT-0-TypE joined #salt
08:45 Rumbles joined #salt
08:48 nafg Is there a way for the top file to target multiple environments simultaneously, i.e. make them equal without repetition
08:50 hemebond nafg: What do you mean?
08:50 hemebond The first part, yes.
08:50 hemebond Second part, no idea what you mean.
08:51 nafg wasn't 2 parts :)
08:51 nafg I mean instead of having a 'base' section and a 'dev' section for example,
08:51 hemebond The i.e
08:51 nafg I want to assign the exact same set of states to both environments
08:51 nafg without repeating myself
08:51 hemebond Uh, you could use Jinja to duplicate it.
08:52 JohnnyRun joined #salt
08:52 nafg that's a good idea. Or I could use jinja to more directly achieve what I want
08:52 nafg how can I get "currently targeted environment" in jinja?
08:53 hemebond Uh. That's not really how it works, I don't think.
08:53 nafg or just get the list of environments...
08:53 nafg (rather than hardcoding the names in two places)
08:53 nafg wdym?
08:54 hemebond Like... the top file says "this is the config for this environment", not "I have a minion wanting this environment"
08:54 hemebond Maybe I misunderstand.
08:54 nafg hemebond: I'm using environments exclusively as a parameter
08:54 nafg like `sudo salt --force-color '*' state.apply saltenv=test test=True`
08:54 nafg But we can skip that
08:55 nafg How can I get the list of environments
08:57 hemebond You might be able to access the master configuration somehow via __salt__
08:57 hemebond But I can't remember how to load salt via the console to test.
08:58 ninjada joined #salt
08:58 lasseknudsen joined #salt
08:59 nafg ok thx
09:00 ninjada_ joined #salt
09:01 sh123124213 joined #salt
09:04 teclator joined #salt
09:05 mikecmpbll joined #salt
09:08 sh123124213 joined #salt
09:13 Inveracity joined #salt
09:14 jas02 joined #salt
09:20 netcho joined #salt
09:21 jas02 joined #salt
09:33 Mattch joined #salt
09:36 systeem joined #salt
09:38 fracklen joined #salt
09:38 s_kunk joined #salt
09:44 netcho_ joined #salt
09:47 lasseknudsen2 joined #salt
09:48 ronnix joined #salt
09:49 Yoda-BZH joined #salt
09:49 Yoda-BZH joined #salt
09:50 mage__ joined #salt
09:59 ninjada joined #salt
10:02 candyman88 joined #salt
10:02 toanju joined #salt
10:03 N-Mi joined #salt
10:03 N-Mi joined #salt
10:08 madboxs joined #salt
10:27 ninjada joined #salt
10:32 fracklen joined #salt
10:40 githubcdr joined #salt
10:47 ronnix joined #salt
10:50 madboxs joined #salt
10:52 Neighbour How do I update/refresh the cache files on the master? (/var/cache/salt/master/files/base)
10:53 edrocks joined #salt
10:55 sh123124213 joined #salt
10:58 cyteen joined #salt
11:13 XenophonF Neighbour: On the master run `salt-run fileserver.update`, e.g., if you're using the gitfs file_roots back end and want to force an update from the source repo.
11:13 XenophonF Note that updates happen every time salt-master's event loop runs, which is every 60s by default.
11:15 teclator joined #salt
11:16 XenophonF nafg: Here's how I handle targeting in multiple environments - https://github.com/irtnog/salt-states/blob/master/top.sls
11:17 XenophonF I don't use the base environment at all.  Instead, I have seperate environments for each DTAP phase.
11:17 impi joined #salt
11:18 nafg Interesting
11:19 XenophonF Pillar doles out the environment/role assignments, an example of which you can see here - https://github.com/irtnog/salt-pillar-example/
11:27 sh123124213 joined #salt
11:41 alan_ joined #salt
11:45 Guest89318 Hi all, I am trying to use salt-master's rest auth mechanism. I am using rest_cherrypy module. I get 401 status code while trying to login with exception Authentication module threw 'status'
11:46 Guest89318 I figured that it is because of this https://github.com/saltstack/salt/blob/2016.11/salt/auth/rest.py#L61 not using status=True argument in function call.
11:47 Guest89318 Is there a way to fix this without forking salt or are we expecting to have this fixed soon.
11:51 madboxs joined #salt
11:51 XenophonF Wow - didn't know that existed.
11:52 XenophonF I wonder if I could hack something together that'd let me use SAML ECP or similar to authenticate users to the salt-master.
11:52 XenophonF You might want to file a bug report, Guest89318.
11:55 Guest89318 Thanks, I have filed this issue
12:08 DanyC joined #salt
12:15 Neighbour XenophonF: Unfortunately, that did not do what I hoped it would do (and we're not using gitfs)
12:17 karlthane joined #salt
12:20 _alan_ joined #salt
12:24 ProT-0-TypE joined #salt
12:25 swills joined #salt
12:34 ronnix joined #salt
12:38 madboxs joined #salt
12:39 sh123124213 joined #salt
12:42 BOP joined #salt
12:44 rdas joined #salt
12:45 __number5__ joined #salt
12:49 numkem joined #salt
12:50 Neighbour XenophonF: I'm using the salt orchestration runner to run a .sls-file which includes the jinja-directive {{ import_text "path/to/file.txt" as text }}
12:59 madboxs joined #salt
13:02 ProT-0-TypE joined #salt
13:05 daxroc Anyone know a module for using LUKS ?
13:08 rhand joined #salt
13:13 jas02 joined #salt
13:18 ninjada joined #salt
13:20 madboxs joined #salt
13:21 toanju joined #salt
13:22 jas02 joined #salt
13:28 jas02 joined #salt
13:32 Neighbour XenophonF: I traced the cause of the problem to this line in the __init__ of salt/utils/jinja.py:
13:32 Neighbour if self.opts['file_roots'] is self.opts['pillar_roots']:
13:32 ninjada joined #salt
13:39 jas02 joined #salt
13:41 madboxs joined #salt
13:44 edrocks joined #salt
13:50 jas02 joined #salt
13:52 remyd1 joined #salt
13:56 jas02 joined #salt
13:58 ifutant joined #salt
13:59 Mattch joined #salt
14:02 madboxs joined #salt
14:04 Reverend sup
14:08 bdrung_work joined #salt
14:11 remyd1 Hi there. I am getting a very strange issue with one of my minion. I can't connect anymore to the master, even if I disable the firewall on the minion. No problems with other minions. I tried to uninstall/ reinstall the minion and this did not change anything. I should have say that it worked normally since last week and although I did not change anything.
14:11 remyd1 After some digging I saw that the daemon salt-minion is started but there is not connection on my tcp port locally
14:12 remyd1 with strace, I am stuck on something like that : " strace -fp 2197 Process 2197 attached read(4, " and then, nothing.
14:13 remyd1 My /proc filesystem is telling me that there not a lot of file in the "fd" subdirectory, contrary to other minions. (only 4 files)
14:14 remyd1 I thought that there was a problem with my hdd, but smartmontools tells me everything is ok, so...
14:14 Rumbles joined #salt
14:15 Mattch1 joined #salt
14:16 Mattch joined #salt
14:17 toanju joined #salt
14:19 brousch__ joined #salt
14:20 colegatron joined #salt
14:23 madboxs joined #salt
14:24 colegatron Currently I run a process nightly using the schedule state. this process has grow enough to need much more cpu and ram power but it only takes about 45min to run.
14:24 colegatron there is anyway to orchestrate the creation of a aws instance, deploy the app there and destroy it automatically using salt ?
14:29 dps joined #salt
14:30 brousch__ colegatron: Salt Cloud might be what you're looking for https://docs.saltstack.com/en/latest/topics/cloud/index.html
14:32 colegatron mmm saltcloud module. great. I started years ago using a vagrant artifact for my infrastructure and I forgot about it. Seems time to think about migration has arrived, by the way
14:33 babilen brousch__: How would you automate that?
14:34 colegatron not sure honestly; but I think a schedule in the salt master orchestrating the creation of the vm, then deploy the app, run it, check the restul state (not sure how now), and then again using saltcloud.module destroy the instance
14:34 colegatron seems pretty logic, will see if it easily dosable too :)
14:34 colegatron doabel
14:35 colegatron doable, damn fingers.
14:35 * babilen removes colegatron's fingers
14:35 colegatron :D
14:35 babilen brain-salt interface!
14:36 colegatron babilen: Is that in the roadmap? which version is expected to be ready?
14:36 gableroux joined #salt
14:36 jas02 joined #salt
14:36 colegatron :P
14:38 colegatron a visual interface (opensource) would be great too. usually I forgot where the hell are written some parts of my infrastructure! (usually in some forgotten pillar)
14:38 colegatron :)
14:38 nickabbey joined #salt
14:44 remyd1 Just for information, a reboot solved my problem... Quite weird.
14:44 madboxs joined #salt
14:45 colegatron just a question to get opinions. I'm thinking to use docker to easily move services/containers between servers without having to worry to write 'uninstall' states to ensure I don't left anything behind.
14:45 colegatron makes sense to keep using salt? (or why it would make sense) I don't want to leave it, but not sure how it would fit in a dockerized environment
14:46 colegatron anyone using salt+docker in production environments?
14:46 tapoxi joined #salt
14:47 DanyC joined #salt
14:47 jas02 joined #salt
14:47 babilen colegatron: I'm using some of https://docs.saltstack.com/en/latest/ref/states/all/salt.states.dockerng.html
14:47 babilen States do what I would expect them to
14:48 babilen I guess you might also want to look into kubernetes or similar technologies
14:50 colegatron I'm more fan of the docker swarm's simplicity. but just because kubernetes seems "too complicated/too many movingparts" for a very limited resources team
14:50 colegatron where resources tends to be "me"
14:50 evle1 joined #salt
14:51 colegatron babilen: did you have used/opinion about swarm?
14:51 babilen Not really, sorry.
14:52 colegatron and kubernetes?
14:52 babilen Have implemented more "static" deployments with dockerio/dockerng states in salt and am transitioning a setup to kubernetes
14:53 babilen So far I like kubernets, but can't really compare it yet
14:53 UForgotten joined #salt
14:54 colegatron so I guess the recommendation is to move to use dockerng in a beginning to get the things running and btw get used to docker.
14:55 babilen I don't think that it would be much of a problem. That kind of docker deployment is rather simple and would be easy to replace with something more dynamic.
14:55 babilen And if it ties into existing salt infrastructure you don't even have that overhead
14:57 colegatron why you say the last sentence? don't I have to build the containers from scratch anyway? Or there is any way to take advantage of the states to build the containers??? that would be great!
14:58 babilen I meant that if you are using SaltStack already, that you don't have to convince yourself/someone to adopt it *just* for managing Docker
14:59 colegatron ah :) ok :) there is no one else to convince, though :)
14:59 colegatron everything in on my back, that's why I am so last adopter
15:00 colegatron btw, would be great to be able to take advantage of docker states to build containers.
15:00 colegatron any idea?
15:00 babilen Packer allows you to provision docker containers with salt and export them
15:01 babilen They tend to get massive and you might end up with "poor VMs" if you don't stick to single service architectures
15:01 racooper joined #salt
15:01 babilen It is an option though and might be appropriate for your setup (rather than having to maintain separate Dockerfiles)
15:02 edrocks joined #salt
15:02 colegatron I'll have a look. last time I did packer packed only vm's :)
15:02 babilen https://www.packer.io/docs/builders/docker.html + https://www.packer.io/docs/provisioners/salt-masterless.html
15:03 colegatron tnx so much babilen. I'll have a look asap.
15:03 babilen Ah .. and one of the Docker (Push/Save/Tag) Post-Processors
15:04 colegatron ?+
15:04 colegatron no sure what you mean
15:05 impi joined #salt
15:05 babilen https://www.packer.io/docs/post-processors/docker-save.html -- That saves the resulting docker container in a file, https://www.packer.io/docs/post-processors/docker-tag.html tags it (but doesn't export it) while https://www.packer.io/docs/post-processors/docker-push.html  pushes it
15:05 colegatron aaaah, ok. thx for the clarification
15:06 babilen https://www.packer.io/docs/builders/docker.html → Using the Artifact: {Export, Committed, Registry}
15:09 sh123124213 joined #salt
15:13 _JZ_ joined #salt
15:15 gmoro joined #salt
15:19 nickabbey joined #salt
15:19 jas02 joined #salt
15:19 Inveracity joined #salt
15:20 sh123124213 joined #salt
15:26 Tanta joined #salt
15:30 ssplatt joined #salt
15:39 daxroc whats the best way to check if a device is mounted ?
15:39 colegatron cat /proc/mounts ?
15:40 colegatron sorry. sure you're asking a salted way
15:40 babilen daxroc: Do you only want to check if it is mounted or do something to mount it?
15:40 babilen (if it is not)
15:41 daxroc In a custom state I need to check if it's mounted and error out if it is
15:41 babilen https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mount.html#salt.modules.mount.is_mounted
15:42 daxroc But that's only for the target mount point I only know the block device, so mount.active ?
15:42 numkem joined #salt
15:46 babilen You could look into mount.active
15:51 leonkatz joined #salt
15:53 Aleks3Y joined #salt
15:54 nethershaw joined #salt
15:56 fracklen_ joined #salt
15:58 numkem joined #salt
16:00 ivanjaros joined #salt
16:03 mpanetta_ joined #salt
16:08 rem5 joined #salt
16:12 cscf can salt-virt specify the MAC address of the VM's eth0?  Or is there any way to get salt-virt to set a static IP in the VM?
16:19 tiwula joined #salt
16:19 puzzlingWeirdo joined #salt
16:22 Reverend cscf: can I ask why?
16:23 Reverend surely if you spin up more than one, it's gonna esplode
16:23 cscf Reverend, I mean being able to specify the mac to virt.init
16:24 cscf or preferably have the seed process edit /etc/network/interfaces to a specified static IP while it's mounting the image
16:24 cscf I want to rapidly provision VMs, but the network has mac-filtered DHCP
16:25 wonko21 joined #salt
16:25 megamaced joined #salt
16:26 wonko21 joined #salt
16:27 Reverend cscf: that's vom
16:27 cscf vom?
16:27 Reverend vomable
16:28 onlyanegg joined #salt
16:28 Reverend still, specifying it in network/interfacts would be a good shout.
16:28 cscf No idea what that means
16:29 Reverend I'm still a little confused as to how the VM's can have the same IP... but as long as you understand it :D
16:29 madboxs joined #salt
16:30 cscf Reverend, no, I want to be able to specify the static IP when I run virt.init, and have it edit /etc/network/interfaces accordingly
16:31 cscf the normal VM cloud-init images just use DHCP, but our network only gives DHCP to MACs that are already in inventory
16:31 tiwula joined #salt
16:31 cscf So the other workaround would be to generate a MAC, then put it in inventory and make the VM with that MAC.
16:32 Reverend ohhhhhhhhhhhhh
16:32 Reverend i see
16:32 Reverend :D
16:33 numkem joined #salt
16:33 cscf :)  It's an annoying problem
16:33 cscf All these cloud systems assume this trusted network with open DHCP
16:33 Reverend that's kinda the point of DHCP tho IMHO.
16:34 Reverend we only statically provision to 90% of our network. the DHCP side of the network is plug and play
16:35 cscf Reverend, I agree, but I do not and will not control the DHCP servers.
16:36 cscf Best I can do is put things in inventory, which then sync to DHCP & DNS.  slowly...
16:36 cscf What I want to have is to create a VM in inventory, wait a few minutes, then virt.init <fqdn>  and go
16:37 Reverend haha. undersstood :D
16:38 amcorreia joined #salt
16:38 cscf Another thing I considered is to make VMs with eth0 private network on the host only, and eth1 on the real network.  NAT eth0 so it can connect to salt, then push a static config to eth1
16:39 nixjdm joined #salt
16:47 xet7 joined #salt
16:49 fracklen joined #salt
16:49 whiteinge joined #salt
16:50 madboxs joined #salt
16:58 DanyC joined #salt
16:58 leonkatz joined #salt
17:04 heaje joined #salt
17:04 aldevar left #salt
17:07 oaken_chris joined #salt
17:11 madboxs joined #salt
17:13 scsinutz joined #salt
17:15 scsinutz joined #salt
17:16 tkojames joined #salt
17:22 sh123124213 joined #salt
17:23 edrocks joined #salt
17:32 madboxs joined #salt
17:34 gableroux joined #salt
17:36 robawt joined #salt
17:36 raspado joined #salt
17:44 tkojames I am running the following salt command and trying to output it to a file, it works. But it adds "cat": "" to each json object. Is there a way for this not to show up? I am doing something wrong? This is the command I am running : sudo salt '*' grains.item ipv4 mem_total num_cpus  osrelease --output=json --static cat >  vmware
17:46 scsinutz joined #salt
17:48 samodid joined #salt
17:50 wonko21 joined #salt
17:53 madboxs joined #salt
17:54 mikecmpbll joined #salt
17:57 karlthane joined #salt
18:00 DanyC all, looking for some tips: i need to dynamically generate the pillar data.sls by pulling/ curling an API and convert the json output into pillar yaml. Any inspiration as a starting point will be much appreciated !
18:02 cscf tkojames, you could sed the "cat: " out XD
18:07 tkojames True, I was just wondering why it is occuring as it does not happen when I ouput other commands with JSON. Might be easier to just sed it and not worry about it.
18:12 Neighbour DanyC: use the "import_json" and "load_json" jinja commands/filters
18:12 Neighbour see https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html
18:13 DEger joined #salt
18:14 madboxs joined #salt
18:16 jas02 joined #salt
18:17 ChubYann joined #salt
18:20 vodik joined #salt
18:20 DammitJim joined #salt
18:20 DammitJim is it possible to run 2 states on the command line?
18:21 DammitJim like sudo salt <server> state.sls mysql tomcat
18:21 impi joined #salt
18:21 jas02 joined #salt
18:21 DanyC Neighbour: i will keep looking into that to see if it does the job, thx
18:25 Trauma joined #salt
18:29 ssplatt joined #salt
18:29 DammitJim is there a proper procedure to change a minion name?
18:30 gableroux joined #salt
18:31 iggy DanyC: I would think you would just do that in an ext_pillar
18:32 iggy DammitJim: I think you just comma separate them
18:32 iggy (re: multiple states on command line)
18:34 XenophonF anyone else running salt on windows? how do you manage salt-minion upgrades?
18:34 XenophonF i'm pretty bummed that the winrepo stuff can't do it
18:34 DammitJim thanks
18:35 madboxs joined #salt
18:36 DanyC iggy: cool cheers, will look into that
18:38 Edgan joined #salt
18:38 Neighbour DanyC: using an external pillar sounds like the proper way to do it, but it might (will) require some programming on your part if the specific external pillar is not available
18:41 DanyC Neighbour: surely is not available as i need to pull it from a custom rest api and then parse the json (strip specific keys) so that i can build my pillar data. The whole idea is this: i have lab 1, i want to "export" the data into pillar yaml data format so i can push it into lab 2
18:51 impi joined #salt
18:57 madboxs joined #salt
18:58 justan0theruser joined #salt
19:01 fracklen joined #salt
19:04 leonkatz joined #salt
19:09 jas02 joined #salt
19:12 edrocks joined #salt
19:22 DammitJim joined #salt
19:23 cyborg-one joined #salt
19:25 sh123124213 joined #salt
19:25 fxhp joined #salt
19:26 scsinutz joined #salt
19:34 DammitJim joined #salt
19:38 toanju joined #salt
19:39 juntalis joined #salt
19:43 sh123124213 joined #salt
19:44 thenoid joined #salt
19:45 jeffspeff joined #salt
19:46 TheoSLC joined #salt
19:48 jas02 joined #salt
19:54 leonkatz joined #salt
19:54 jas02 joined #salt
20:01 onlyanegg joined #salt
20:02 kulty joined #salt
20:02 greatdane joined #salt
20:03 aldevar joined #salt
20:04 greatdane Can minions talking to a syndic get their pillar data from the parent master (i.e. not the syndic)?  Seems like it doesn't work, but wanna make sure I'm not doing something wrong.
20:04 kulty Hi channel, just curious on this, but does anyone know of a plaintext version of docs.saltstack.com module documentation?
20:05 dyasny joined #salt
20:05 delpanto93 joined #salt
20:06 dyasny joined #salt
20:08 cmarzullo greatdane: minions get thier pillar from the syndics. You'll need to replicate pillar into the syndics.
20:09 cmarzullo At least that's what I've always done.
20:09 cmarzullo kulty: you can use salt to view salt documentation
20:10 greatdane cmarzullo:  Thanks.  Do you have a preferred technique for replicating the pillar into the syndics?  Just curious.
20:12 cmarzullo Lots of options greatdane. We keep all our pillar in git. There's git_pillar which will keep you in sync. We don't use that for other reasons and manually control when the pillar is updated.
20:13 cmarzullo https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.git_pillar.html
20:14 greatdane I can imagine a lot of options, yes.  Do you avoid git_pillar or is it solid?
20:14 kulty thanks cmarzullo !
20:16 cmarzullo I understand it to be solid. It's often recomended here.
20:17 greatdane Cool, thanks.
20:21 sh123124213 joined #salt
20:26 onlyanegg joined #salt
20:27 scsinutz joined #salt
20:27 candyman88 joined #salt
20:32 systemexit channel, using manage.bootstrap backed by salt-ssh in 2016.11, http.query successfully downloads the bootstrap script but the contents never make it into deploy.sh on the target minion (the bootstrap-uuid dir does get created). closest issue i can find is #38883... maybe. thoughts?
20:36 tapoxi hi guys, trying to use salt-ssh, but running into weird issues
20:37 tapoxi it looks like its unable to use anything I have stored in gitfs?
20:39 tapoxi https://github.com/saltstack/salt/issues/23576
20:39 saltstackbot [#23576][OPEN] Cannot use gitfs with salt-ssh | Related thread in salt user mailing list....
20:39 tapoxi nm, ugh
20:42 cypher543 joined #salt
20:43 kingscott joined #salt
20:45 kingscott has anyone experienced the error "No matching sls found for '<state.sls>' in env 'base'"? When I try to target a minion to run a state on it i get that error.
20:46 whytewolf kingscott: are you trying to run a single state or a highstate?
20:46 kingscott run a single state
20:47 whytewolf what is the command you are using?
20:47 kingscott salt 'minion' state.sls security.banner
20:47 scsinutz joined #salt
20:47 kingscott security.banner is a state i wrote that works on other minions.
20:47 s_kunk joined #salt
20:49 whytewolf wait does the error actually say state.sls?
20:49 kingscott exact error:     Data failed to compile: ----------     No matching sls found for 'security.banner' in env 'base'
20:49 whytewolf ok
20:50 fracklen joined #salt
20:51 whytewolf Data failed to compile ... that would imply a render error
20:52 jhauser joined #salt
20:52 whytewolf run a state.show_sls on that minion on that sls file. maybe something that is expected isn't in the same state that it is expected to be in that minion
20:52 sh123124213 joined #salt
20:53 whytewolf also make sure the file shows up in a cp.list_master
20:53 Tanta_G joined #salt
20:54 kingscott state.show_sls - No matching sls found for state in env 'base'
20:55 kingscott how do i see the cp.list_master?
20:55 whytewolf salt 'minion' cp.list_master
20:55 kingscott yeah...nothing is showing for the cp.list_master
20:56 whytewolf are you using enviroments?
20:56 kingscott no.
20:56 whytewolf interesting
20:56 whytewolf check your other minions cp.list_master
20:57 kingscott yes they list everything.
20:58 whytewolf humm. oddness. then why is your master not showing this minion it's files ...
20:58 whytewolf [which is why you are getting the error]
20:59 kingscott i'll look into this thanks for helping me troubleshoot.
20:59 hemebond Using environments?
20:59 whytewolf that was my first question hemebond :P
20:59 whytewolf and the answer was no
20:59 hemebond Haha
20:59 hemebond I checked but didn't see it :-D
21:08 aldevar left #salt
21:09 DanyC joined #salt
21:13 SaucyElf joined #salt
21:14 leonkatz joined #salt
21:15 icebal_ joined #salt
21:18 madboxs joined #salt
21:20 bb joined #salt
21:23 sh123124213 joined #salt
21:23 kingscott joined #salt
21:23 jas02 joined #salt
21:28 prg3 joined #salt
21:30 ninjada joined #salt
21:32 scsinutz joined #salt
21:33 kingscott how outdated is salt-minon 0.17.5?
21:33 ekristen joined #salt
21:33 whytewolf extreamly
21:34 kingscott lol looks like that's the issue with the minion not getting it's list from the baster.
21:34 ekristen why would a custom module in _modules not sync to a minion when I run saltutil.sync_all?
21:34 kingscott some user must have messed with it.
21:34 whytewolf are you on ubuntu trusty?
21:34 kingscott me? yes.
21:34 madboxs joined #salt
21:35 whytewolf ekristen: humm. if when running sync_all it can't be found at salt://_modules/<custom_module>.py
21:35 photoeye joined #salt
21:35 sh123124213 joined #salt
21:35 whytewolf kingscott: then most likely installed from ubuntu's own repo. they still ahve that version internally on their own repo
21:36 kingscott what is weird is that it was working just fine about a month ago.
21:37 whytewolf humm that sounds like someone did change something
21:37 whytewolf knock heads
21:37 ekristen whytewolf: huh my states are going down to the minion, but my custom _module isn't
21:38 whytewolf ekristen: another reason would be if it has the same crc to a module file already on the minion in the extmod directory
21:38 ekristen extmod is empty
21:38 ekristen the target system is MacOS vs my usual OSX
21:39 ekristen usual *linux*
21:39 whytewolf that shouldn't matter
21:39 * ekristen is confused
21:40 whytewolf enviroment issues?
21:41 ekristen oh
21:41 ekristen sync commands are tied to the base env
21:41 hemebond Unless otherwise specified.
21:42 ekristen I keep forgetting that
21:42 ekristen ok, there we go
21:42 ekristen problem solved, thanks whytewolf and hemebond
21:43 gmoro joined #salt
21:43 ekristen I should probably just move my custom modules into my base env anyways
21:46 ninjada joined #salt
21:47 chowmeined joined #salt
21:48 scsinutz joined #salt
21:50 madboxs joined #salt
21:51 ninjada joined #salt
21:53 ninjada joined #salt
22:07 madboxs joined #salt
22:09 jagguli- joined #salt
22:17 scsinutz joined #salt
22:22 madboxs joined #salt
22:24 tapoxi man I keep running into weird jinja issues with salt-ssh
22:24 ninjada joined #salt
22:25 tapoxi http://pastebin.com/raw/yUv7TvC5
22:25 tapoxi do I need to do something for my formulas to sync?
22:26 hemebond Seems odd that it's trying to import a Jinja variable from a YAML file.
22:26 hemebond Oh, it just can't find the file.
22:27 hemebond Have you tried doing a sync_all?
22:27 hemebond I've never used salt-ssh so I don't know much about it.
22:28 whytewolf salt-ssh needs to be told to include anything that is included through jinja [it isn't able to determine this by it's self]
22:28 Tanta joined #salt
22:29 whytewolf using extra_filerefs
22:47 jagguli- joined #salt
22:51 ninjada joined #salt
22:53 NightMonkey joined #salt
22:54 ninjada joined #salt
23:10 madboxs joined #salt
23:10 DanyC joined #salt
23:23 armguy joined #salt
23:26 scsinutz joined #salt
23:26 gableroux joined #salt
23:26 madboxs joined #salt
23:36 jas02 joined #salt
23:38 oaken_chris joined #salt
23:42 mikecmpbll joined #salt
23:42 madboxs joined #salt
23:48 ahrs joined #salt
23:57 ssplatt joined #salt
23:58 madboxs joined #salt

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