Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-01-02

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

All times shown according to UTC.

Time Nick Message
00:04 cyteen joined #salt
00:05 cyborg-one joined #salt
00:17 madboxs joined #salt
00:18 teclator joined #salt
00:19 rojem joined #salt
00:23 teclator joined #salt
00:27 realityeuphoria joined #salt
00:38 teclator joined #salt
00:44 teclator joined #salt
00:45 madboxs joined #salt
00:51 teclator joined #salt
00:53 assburgers joined #salt
00:53 assburgers im pretty salty
00:55 teclator joined #salt
01:00 teclator joined #salt
01:00 s_kunk joined #salt
01:05 teclator joined #salt
01:10 teclator joined #salt
01:10 nickabbey joined #salt
01:17 SamYaple is there a way to ignore a changed state? running a mysql_query and it always returns changed even when rows_affect=0
01:18 RandyT joined #salt
01:25 shoemonkey joined #salt
01:26 teclator joined #salt
01:31 PatrolDoom unless?
01:31 PatrolDoom sec let me see how we're doing it
01:31 teclator joined #salt
01:32 PatrolDoom hrm nvm we're doing something diff
01:38 teclator joined #salt
01:44 teclator joined #salt
01:50 teclator joined #salt
01:55 teclator joined #salt
02:00 edrocks joined #salt
02:01 teclator joined #salt
02:03 DEger joined #salt
02:06 teclator joined #salt
02:12 teclator joined #salt
02:12 cmarzullo yeah you'd have to use an unless statement. I also just ran into that issue and make a small stateful python script to do the needful.
02:12 PatrolDoom ^
02:13 PatrolDoom heh finding salt to be like nagios/icinga at times. has a lot of built in functionality however you have to write your own for certain things
02:17 teclator joined #salt
02:18 cmarzullo indeed
02:19 cmarzullo I did write my first custom external pillar so I'm pretty excited about that.
02:24 teclator joined #salt
02:30 teclator joined #salt
02:34 catpigger joined #salt
02:37 DEger joined #salt
02:39 teclator joined #salt
02:41 DEger joined #salt
02:42 sebastian-w joined #salt
02:46 PatrolDoom joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.1 <+> 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:49 teclator joined #salt
02:50 cyteen_ joined #salt
03:00 teclator joined #salt
03:10 teclator joined #salt
03:16 teclator joined #salt
03:22 teclator joined #salt
03:28 teclator joined #salt
03:28 ALLmightySPIFF joined #salt
03:30 whiteinge joined #salt
03:33 teclator joined #salt
03:34 elh9 joined #salt
03:36 elh9 joined #salt
03:36 icebal joined #salt
03:38 teclator joined #salt
03:38 MeltedLux joined #salt
03:41 bastiandg joined #salt
03:45 JPT joined #salt
03:45 whiteinge joined #salt
03:49 teclator joined #salt
03:54 teclator joined #salt
04:03 edrocks joined #salt
04:11 teclator joined #salt
04:23 vodik with file.managed, and templates, there's the 'context' section - how is that context make available to other templating engines? say if i use 'py' instead of 'jinja' for a config file?
04:24 vodik its not clear in the documentation, but maybe i missed something somewhere
04:25 J0hnSteel joined #salt
04:30 buu Presumably it varies slightly depending on the templating engine
04:30 buu But I would venture to guess 'the normal way'
04:31 PatrolDoom context is just data sent to the template
04:31 PatrolDoom it will replace w/e var you set in said template
04:31 vodik i just found it
04:31 vodik It is also possible to use the :mod:`py renderer <salt.renderers.py>` as a
04:31 vodik templating option. The template would be a Python script which would need to
04:31 vodik contain a function called ``run()``, which returns a string. All arguments
04:31 vodik to the state will be made available to the Python script as globals.
04:31 vodik there's a global called 'context'
04:39 alssi joined #salt
04:47 nZac joined #salt
04:54 tharkun joined #salt
05:19 rem5 joined #salt
05:25 icebal joined #salt
05:29 rdas joined #salt
05:42 icebal joined #salt
05:48 nZac joined #salt
06:05 swills joined #salt
06:11 icebal joined #salt
06:29 cyborg-one joined #salt
06:31 icebal joined #salt
06:35 MeltedLux joined #salt
06:38 icebal joined #salt
06:45 felskrone joined #salt
06:47 icebal joined #salt
06:57 siddu joined #salt
06:57 siddu hi
06:58 siddu for salt where all configurations stored like in case of chef configuration data is stored in chef master
07:01 iggy rephrase the question
07:04 preludedrew joined #salt
07:07 buu siddu: it's stored in your file root on the salt-master
07:09 iggy but cached on any/all minions
07:09 siddu_ joined #salt
07:09 iggy which is why I asked for a rephrased question
07:13 siddu_ i need to configure some number of windows machines from salt master which is on ubuntu, my doubt is where the configuration data is available like in case of chef it is available on chef server?
07:15 icebal joined #salt
07:15 colttt joined #salt
07:17 DEger joined #salt
07:18 icebal joined #salt
07:31 MTecknology I feel like I'm missing a *LOT* of output from this. :S   http://dpaste.com/1VDNBNR
07:32 buu it probably just hashes it
07:32 MTecknology hm?
07:32 MTecknology oh
07:33 MTecknology Last time I remember looking at -l trace, every single rendered sls was displayed and all sorts of other crap, but ... not here
07:46 impi joined #salt
07:49 nZac joined #salt
08:03 elh9 joined #salt
08:06 edrocks joined #salt
08:12 cyborg-one joined #salt
08:15 JohnnyRun joined #salt
08:20 iggy just use show_highstate with --out=uaml
08:21 inad922 joined #salt
08:26 nomad_fr joined #salt
08:26 nomad_fr Hi
08:26 nomad_fr I'd like to 'target' only minion that are up
08:27 buu What does targeting a minion that is down do?
08:27 iggy I'm not sure that's possible
08:27 iggy it takes forever and times out
08:27 nomad_fr I know how to target specific thing like : salt -G 'osrelease:14.04'
08:28 nomad_fr wiht the return of test.ping
08:28 nomad_fr because if minion are not up whats appen
08:28 pcdummy iggy: you and your team handle 22k servers? :)
08:28 nomad_fr I'd like to do something like this
08:28 iggy pcdummy: yes
08:28 nomad_fr salt -G 'virtual:openvzve' cmd.run 'apt-get update'
08:28 pcdummy iggy: nice and thanks for giving an insight
08:29 nomad_fr but don;t want to wait for 'down' serveurs
08:29 iggy then delete the down servers
08:29 pcdummy salt-key -d servername\*
08:31 iggy salt-run manage.down removekeys=True
08:32 nomad_fr I don;t wnat to remove them they will bw up in the future
08:32 iggy then wait for them to timeout
08:32 nomad_fr oh
08:33 nomad_fr ok
08:33 iggy there's not a salt --ignore-down-hosts-even-though-we-dont-know-whats-down-until-we-try
08:38 theblazehen71 joined #salt
08:39 ivanjaros joined #salt
08:40 iggy nomad_fr: you can build a list with the output from the manage runners, but they aren't exactly fast themselves...
08:46 dkrae joined #salt
08:55 fracklen joined #salt
08:56 fracklen joined #salt
09:12 jonher joined #salt
09:17 DEger joined #salt
09:24 auzty joined #salt
09:24 teclator joined #salt
09:26 ronnix joined #salt
09:26 cliluw joined #salt
09:31 guerby joined #salt
09:34 johnkeates joined #salt
09:36 Electron^- joined #salt
09:37 madboxs joined #salt
09:41 Kelsar joined #salt
09:45 Mandorath joined #salt
09:46 guerby joined #salt
09:46 LotR joined #salt
09:47 yidhra joined #salt
09:49 nZac joined #salt
09:50 madboxs joined #salt
09:50 alssi joined #salt
10:08 saintpablo joined #salt
10:09 jeddi joined #salt
10:10 cb joined #salt
10:11 sh123124213 joined #salt
10:14 samodid joined #salt
10:31 J0hnSteel joined #salt
10:36 pjs joined #salt
11:05 madboxs joined #salt
11:06 ronnix joined #salt
11:08 edrocks joined #salt
11:17 pcdummy iggy: ever tried foreman?
11:18 pcdummy iggy: (salt - foreman i mean)
11:18 DEger joined #salt
11:18 pcdummy arnoldB was/is using that one but he isn't available atm.
11:19 rdas joined #salt
11:19 sebastian-w__ joined #salt
11:21 DEger_ joined #salt
11:24 capri joined #salt
11:24 jeddi joined #salt
11:26 madboxs joined #salt
11:32 Taters_ joined #salt
11:41 elh9 joined #salt
11:53 elh9 joined #salt
12:08 hgf joined #salt
12:10 teclator joined #salt
12:27 hgf can someone point me to a good multi-env documentation?
12:28 hgf I'm trying to use pillarenv and environment, but I'm having no success
12:28 hgf while testing multiple pillar envs first, I get no pillar.items, and no logged errors
12:28 hgf running both master and minion with -l debug also is not helping
12:28 hgf I'm completely blind here
12:29 abednarik joined #salt
12:33 Mandorath Hey, I've noticed that when using tpldir to create a relative path reference it always uses the 'path' from the first file, for example when the first file imports a second file which than imports a third file the relative path from the first file is used to import the third file. If the second file is in a different directory than the first file the import will fail (hoe this makes sense). Does anyone have any suggestions on how t
12:37 rdas joined #salt
12:39 sh123124213 joined #salt
13:03 abednarik joined #salt
13:04 theblazehen71 joined #salt
13:10 ronnix joined #salt
13:19 ronnix_ joined #salt
13:26 pcdummy hgf: multienv works but is not recommended (from advanced users here), use multi masters.
13:27 pcdummy hgf: what do you need exactly? Do you have *includes in one env? That doesn't work.
13:27 demize joined #salt
13:27 haam3r joined #salt
13:28 Flying_Panda Is there anyway to ensure a state file defined in '*' of top file is always called last
13:28 hgf I'm starting from scratch. I'll have 2 different DCs and multiple envs on each other.
13:28 hgf I'm testing first the pillarenv
13:28 hgf but I didn't found much docs about it
13:29 Inver joined #salt
13:29 hgf I've created two different pillarenvs, and I'm testing it in 1 node, but the node is not showing any pillar variable I'm using in the test
13:29 hgf I've found that I can debug salt state envs, by using `salt-run fileserver.file_list saltenv=XXX`
13:30 hgf but I didn't found yet a way to test pillar envs
13:31 Inver heya everyone, quick question, I can't seem to use "salt-key --auth=ldap" it says to use root, but I was hoping to avoid using sudo if ldap was a possibility, anyone got any pointers there?
13:33 shoemonkey joined #salt
13:37 ronnix joined #salt
13:38 DEger joined #salt
13:43 rem5 joined #salt
13:51 nZac joined #salt
13:53 abednarik joined #salt
14:00 nZac joined #salt
14:03 DEger joined #salt
14:09 tkharju joined #salt
14:10 edrocks joined #salt
14:11 dober joined #salt
14:11 dober joined #salt
14:14 masber joined #salt
14:14 masber hi
14:14 masber anybody know how can I download saltstack 2014.7?
14:15 Kelsar joined #salt
14:18 ws2k3 how can i target 2 spesific nodes with salt?
14:19 ws2k3 i tryed salt 'test1 test2' cmd.run "something" and salt 'test1, test2' cmd.run "something" both give me a syntax error
14:19 Inver masber seems the earliest available at this point is 2015.5 when browsing through repo.saltstack.com
14:20 Inver ws2k3 try: salt -L 'test1,test2' test.ping
14:29 JohnnyRun hi all. Someone use salt to deploy kubernetes?
14:31 nZac joined #salt
14:32 spiksius joined #salt
14:32 saintpablo joined #salt
14:33 cliluw joined #salt
14:33 nickadam joined #salt
14:34 abednarik joined #salt
14:36 mavhq joined #salt
14:50 madboxs joined #salt
14:53 telx joined #salt
14:53 _JZ_ joined #salt
14:55 dober joined #salt
14:55 dober joined #salt
14:55 Kruge left #salt
14:56 PatrolDoom joined #salt
15:01 ZeD-- joined #salt
15:04 cwinkler joined #salt
15:10 nZac joined #salt
15:11 madboxs joined #salt
15:16 nickabbey joined #salt
15:16 shoemonkey joined #salt
15:26 nicksloan joined #salt
15:27 icebal joined #salt
15:32 madboxs joined #salt
15:33 cwinkler do I have to make my private winrepo known to my minions? it updates fine on master but pkg.get_repo_data and pkg.list_available is empty
15:33 dxtr joined #salt
15:33 abednarik joined #salt
15:33 dxtr Hi! How do you generally handle /etc/salt/minion on your minions?
15:33 dxtr Doesn't it kind of defeat the purpose if I have to SSH into the boxes just to add some mysql configuration?
15:34 cmarzullo it's managed by salt dxtr
15:34 dxtr How would I add the mysql configuration to it through salt?
15:34 dxtr Excuse me if I am being ignorant here :p
15:35 cmarzullo We manage the salt configuration with a salt formula.
15:35 cmarzullo Howver if you are just getting started do a file.managed of /etc/salt/minion.d/mysql.conf and place your values there.
15:35 viq Also a lot of minion config can be set via pillars
15:35 dxtr Oh I forgot about minion.d
15:36 dxtr Thanks!
15:36 cmarzullo np
15:37 viq dxtr: it's quite likely you can set it via pillars
15:39 cmarzullo ^^
15:45 _JZ_ joined #salt
15:47 dxtr Hmm, okay
15:48 dxtr How would I do that?
15:53 hgf joined #salt
15:54 sh123124213 joined #salt
15:56 hgf pcdummy do you know if there is a way to have some shared SLS pillar files between different pillar_roots/pillarenvs?
15:56 viq dxtr: whatever you're to put in the minion config put in a pillar instead
15:57 hgf ex.: /srv/pillar/base/users is available to /srv/pillar/dev/top.sls somehow (like merging dev with base)
15:57 hgf I've tried adding both on pillar_roots, but it doesn't work
15:57 hgf I got " Specified SLS 'users' in environment 'dev' is not available on the salt master
16:06 viq How about a 'common' environment, where you have stuff you want to share between environments?
16:06 shoemonkey joined #salt
16:10 viq http://grokbase.com/t/gg/salt-users/163nsfgjcz/pillar-and-environment-why-return-the-strong-value  has some discussion about that as well
16:20 amontalban joined #salt
16:21 hgf that's what I want to do viq
16:22 hgf tks for the link... will check it out
16:23 pcdummy hgf: i work with git_pillar and gitfs states, I have a shared git_pillar and shared states for all usages.
16:34 hgf do you pin your minion to an pillarenv?
16:34 hgf ...your minions...
16:34 hgf pcdummy:
16:37 hgf also, are you using isolated environments? each of one having it's own top.sls file?
16:38 viq hgf: top files get merged.
16:38 hgf for states yes, but for pillar env?
16:39 viq I'm not sure, but I would expect so
16:39 hgf that's not what I got in my test
16:40 abednarik joined #salt
16:52 inad922 joined #salt
16:53 nZac joined #salt
17:02 SamYaple is there anyway to do a #!jinja|py renderer? im trying to include a python function much the same way you would include a macro in jinja|yaml filter for the purpose of DRY
17:02 SamYaple it doesnt have to be jinja|py either, anything really that would allow me to share a function or class
17:28 Neighbour SamYaple: Maybe a custom execution module would help you? There you can define your function, and then use it in jinja
17:28 Neighbour with {{ salt['module.function'](args) }}
17:32 SamYaple Neighbour: hmm i think you might have that backwards, i want to render the whole sls into pure python, while maintaining DRY across the different state files like I can with jinja|yaml and macros
17:33 SamYaple i *could* do it with a local import, but ive not gotten that to work and it seems janky
17:36 DEger joined #salt
17:37 hasues joined #salt
17:38 SamYaple Neighbour: looks like I could modify the py renderer to accept a StringIO from jinja renderer and write it out to a tmp file before passing it to templates.py
17:39 shoemonkey joined #salt
17:40 nZac joined #salt
17:40 Neighbour SamYaple: What is it you want to do with jinja that you can't already do in python?
17:41 nZac joined #salt
17:42 SamYaple Neighbour: I have common functions that I would like to share across several sls so as not to violate DRY
17:42 hasues left #salt
17:42 SamYaple Neighbour: much like importing a macro with jinja|yaml filter
17:42 Neighbour that is exactly what custom execution modules are for
17:43 Neighbour to put your functions in, so you can use them in all your sls files
17:47 dendazen joined #salt
17:47 SamYaple i cant say that I follow how thats better
17:48 SamYaple thats smashing 6 states that currently have thier own require and require_in bits into one. anyway I look at it, I lose alot of context and move it into the module
17:50 anotherzero joined #salt
17:53 madboxs joined #salt
17:55 tiwula joined #salt
17:55 czchen joined #salt
17:56 shawnbutts joined #salt
17:56 JamieH joined #salt
17:56 lkannan joined #salt
17:56 hacks joined #salt
17:57 krobertson joined #salt
17:58 smakar_ joined #salt
17:58 pcdummy hgf: no, i have a base git pillar and a home and work git
17:58 pcdummy hgf: i use the base pillar at home and at work + a "home" or a "work" git
17:58 nahkiss joined #salt
17:58 liviudm joined #salt
18:00 bbhoss joined #salt
18:00 pcdummy hgf: pillar top gets merged
18:00 * pcdummy is a bit here and bit playing Spring RTS
18:01 ntropy joined #salt
18:09 madboxs joined #salt
18:13 edrocks joined #salt
18:16 fracklen joined #salt
18:18 johnkeates joined #salt
18:21 abednarik joined #salt
18:23 justanotheruser joined #salt
18:27 abednarik joined #salt
18:29 Trauma joined #salt
18:30 pipps joined #salt
18:38 chmod666org joined #salt
18:50 pipps joined #salt
18:53 catpig joined #salt
18:56 madboxs joined #salt
18:59 moy joined #salt
19:12 madboxs joined #salt
19:13 fxhp joined #salt
19:15 teclator joined #salt
19:19 nickabbey joined #salt
19:22 ivanjaros joined #salt
19:27 madboxs joined #salt
19:28 pipps joined #salt
19:41 abednarik joined #salt
19:43 madboxs joined #salt
19:43 lorengordon joined #salt
19:54 lorengordon does salt have an execution module that works like 'which'?
19:55 lorengordon i know there is 'salt.utils.which()', but i'm not seeing that exposed through an execution module...
19:59 madboxs joined #salt
20:00 cyborg-one joined #salt
20:04 mihait joined #salt
20:04 racooper joined #salt
20:04 copelco joined #salt
20:04 mattl joined #salt
20:05 munhitsu_ joined #salt
20:05 aarontc joined #salt
20:09 racooper joined #salt
20:15 madboxs joined #salt
20:15 edrocks joined #salt
20:25 pipps joined #salt
20:30 madboxs joined #salt
20:36 iggy pcdummy: I haven't... I don't think it fits our needs... we need something that supports multiple masters fairly well (we have a lot)
20:36 pcdummy kk
20:41 iggy lorengordon: you need it in jinja?
20:41 lorengordon iggy: yep
20:42 lorengordon for now, settled for {% if salt.find('/', 'myfile') %}
20:42 iggy jeebus
20:42 iggy you don't want this to run quickly do you?
20:43 iggy I'd cmd.run which binary before that
20:43 lorengordon lololol, it is not at all ideal
20:43 AndreasLutro there is a module that has a function "which" in it
20:43 AndreasLutro I think it'd cmd
20:43 lorengordon oh, let me look there
20:43 iggy or cmd.run locate
20:43 iggy or what AndreasLutro said
20:44 lorengordon yep, there it is, awesome!
20:44 lorengordon was looking in the file module before
20:46 madboxs joined #salt
20:52 PuppyPoker joined #salt
20:53 sjohnsen joined #salt
20:53 nickabbe_ joined #salt
20:57 amontalban joined #salt
20:57 PuppyPoker left #salt
21:01 sjohnsen joined #salt
21:10 shoemonkey joined #salt
21:13 abednarik joined #salt
21:13 mirko how can i retrieve all grains from a minion via salt-ssh ?
21:13 mirko sth. like < salt-ssh '$$HOST$$' grains.get '*' >
21:17 DEger joined #salt
21:17 pipps joined #salt
21:19 babilen mirko: grains.items
21:27 fgimian joined #salt
21:29 mirko babilen: thanks!
21:30 sh123124213 joined #salt
21:33 madboxs joined #salt
21:34 edrocks joined #salt
21:46 edrocks_ joined #salt
21:47 edrocks__ joined #salt
21:49 madboxs joined #salt
22:01 viq https://youtu.be/OPqsIdV9g5Y?t=33m7s ... "all our products are codenamed for Sith lords"
22:02 shoemonkey joined #salt
22:02 mirko i just updated salt on my master and now i'm constantly getting:
22:02 mirko An Exception occurred while executing state.sls: [Errno 13] Permission denied: '/var/tmp/.conf_7c7bca_salt/running_data'
22:02 mirko removing that dir does not help
22:05 madboxs joined #salt
22:07 buu ulimits, parent dir perms, noexec mount, umask?
22:09 stanchan joined #salt
22:13 mirko buu: adressing me?
22:14 mirko basepi: ping
22:14 PatrolDoom joined #salt
22:16 mirko basepi: may i point you to https://github.com/saltstack/salt/issues/29699 ?
22:16 saltstackbot [#29699][MERGED] salt-ssh, tty, sudo: Permission denied: '/tmp/.salt_xxxxxx_salt/running_data/var' | On CentOS 6, versions:...
22:17 KennethWilke joined #salt
22:17 shoemonkey joined #salt
22:21 darkpixel left #salt
22:34 nicksloan joined #salt
22:38 nicksloan joined #salt
22:40 iggy selinux?
22:40 iggy (in addition to what buu said)
22:48 nZac joined #salt
22:53 DEger joined #salt
22:53 tawm04 joined #salt
23:03 shoemonkey joined #salt
23:06 nickabbey joined #salt
23:35 mirko well, i just upgraded salt and before it worked
23:36 mirko not sure where to look for such (selinux, etc.) issues either
23:36 mirko it's plain debian / ubuntu hosts
23:36 mirko so an umask i'd say is quite unlikely
23:37 fracklen joined #salt
23:38 anotherzero joined #salt
23:38 nickabbey joined #salt
23:46 fracklen joined #salt
23:55 shoemonkey joined #salt

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