Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-03-12

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

All times shown according to UTC.

Time Nick Message
00:00 codewaffle this config really needs to not have any credentials at all
00:06 beardedeagle joined #salt
00:08 MindDrive joined #salt
00:08 shaggy_surfer joined #salt
00:11 _beardedeagle joined #salt
00:12 fracklen joined #salt
00:13 mpanetta joined #salt
00:28 mdasilva joined #salt
00:29 flowstate joined #salt
00:29 godlike joined #salt
00:29 godlike joined #salt
00:30 ecdhe joined #salt
00:36 virtualguy joined #salt
00:39 flowstate joined #salt
00:47 hasues joined #salt
00:49 hemebond joined #salt
00:50 bgrrtt joined #salt
00:59 baweaver joined #salt
01:05 hasues left #salt
01:08 Sokel left #salt
01:19 bhosmer_ joined #salt
01:26 nZac joined #salt
01:28 kliquori joined #salt
01:28 mdasilva joined #salt
01:29 nethershaw joined #salt
01:37 jeffspeff hey, is this command not valid anymore? I get a failed to compile error when my minions run it.    {% do salt['pkg.refresh_db']() %}
01:40 hemebond I've never seen that usage before.
01:45 darix joined #salt
01:56 mdasilva joined #salt
02:01 amcorreia joined #salt
02:08 sjmh joined #salt
02:20 donmichelangelo joined #salt
02:22 mpanetta joined #salt
02:23 mpanetta joined #salt
02:24 mpanetta joined #salt
02:31 subsignal joined #salt
02:31 racooper joined #salt
02:47 notnotpeter joined #salt
02:52 favadi joined #salt
02:55 catpigger joined #salt
02:57 edrocks joined #salt
03:07 bhosmer joined #salt
03:18 nZac joined #salt
03:26 subsignal joined #salt
03:29 kliquori joined #salt
03:55 mpanetta joined #salt
03:56 mpanetta joined #salt
04:01 benji joined #salt
04:05 cro joined #salt
04:09 iceyao joined #salt
04:10 iceyao joined #salt
04:13 tercenya_ joined #salt
04:14 zmalone joined #salt
04:18 kliquori joined #salt
04:43 chesty joined #salt
04:46 capricorn_1 joined #salt
04:49 iceyao joined #salt
04:50 iceyao_ joined #salt
04:51 iceyao joined #salt
04:54 iceyao__ joined #salt
04:56 fracklen joined #salt
05:01 iceyao joined #salt
05:10 writtenoff joined #salt
05:13 bhosmer joined #salt
05:14 evle1 joined #salt
05:18 evle joined #salt
05:19 nZac joined #salt
05:32 armguy joined #salt
05:35 fracklen joined #salt
05:41 akhter joined #salt
05:43 fracklen joined #salt
05:54 kermit joined #salt
05:58 Shirkdog joined #salt
06:03 Shirkdog_ joined #salt
06:03 Shirkdog_ joined #salt
06:06 malinoff joined #salt
06:08 bhosmer joined #salt
06:08 sauvin joined #salt
06:11 digitalhero joined #salt
06:19 kliquori joined #salt
06:25 fracklen joined #salt
06:27 sjmh joined #salt
06:34 WizJin joined #salt
06:39 LostSoul_ Helllo
06:40 LostSoul_ http://pastebin.com/Td2EXh0K  - what did I do wrong that I get error: failed: Jinja variable 'ssh_config' is undefined
06:41 linjan joined #salt
06:42 felskrone joined #salt
06:44 hemebond LostSoul_: You need to use salt['pillar.get']('ssh_config')
06:44 hemebond It's not a Jinja variable so you need to fetch it out of the Pillar.
06:46 LostSoul_ Aaa
06:46 LostSoul_ Thanks :)
06:46 hemebond np :-)
06:47 LostSoul_ hemebond: btw
06:47 LostSoul_ Is is proper way to handle this?
06:47 LostSoul_ I found out one way with set <var_name>
06:48 hemebond Handle what exactly?
06:48 LostSoul_ I know in Ansible it was a bit easier to just type variables but here I need to put it into pillars and get it out of it
06:48 hemebond Well, you put _data_ into pillars and _functionality_ into states.
06:48 hemebond You _could_ use Jinja variables in your state to populate the ssh configuration.
06:49 hemebond But it's much better to put that data into a pillar.
06:49 hemebond That way your states are generic and just transform your data into a desired state on the minion.
06:49 LostSoul_ Thanks so I did it good way
06:50 hemebond You sure did :-)
06:50 LostSoul_ I was asking about handling lists/arrays of data
06:50 LostSoul_ Like regexp many lines etc
06:50 hemebond You mean in the Pillar?
06:50 LostSoul_ Yes
06:50 LostSoul_ Is is best way
06:50 hemebond There are different ways of formatting dicts and lists in YAML, yes.
06:50 LostSoul_ I see
06:51 LostSoul_ Because I didn't like idea of adding multiple salt.state for each line
06:51 LostSoul_ Like you know each "file.line" for each line in sshd_config :)
06:51 LostSoul_ So I guess I did it in good way
06:52 hemebond Oh I see what you're referring to now.
06:52 hemebond Well, there are formulas out there that can configure SSH for you.
06:52 hemebond They're take your Pillar data, overlay it onto the default settings, and then write the config for you.
06:52 hemebond That's probably a better way.
06:53 LostSoul_ Can you give me tip/link or something? :)
06:54 hemebond https://github.com/saltstack-formulas/openssh-formula
06:56 LostSoul_ Should it be salt['pillar.get']('ssh_config') or pillar.['ssh_config']?
06:56 hemebond The former
06:56 LostSoul_ Also I want to manage Nagios config files, so I guess I will need regexp in that case :)
06:57 hemebond There is very likely a formula already for Nagios :-)
06:57 LostSoul_ Haha :)
06:57 hemebond Check out https://github.com/saltstack-formulas/
06:57 LostSoul_ I'm still new to Salt :)
06:57 LostSoul_ Thanks man :)
06:57 hemebond np :-)
06:58 LostSoul_ < hemebond> The former
06:59 LostSoul_ What did you mean by that? :)
06:59 hemebond salt['pillar.get']('ssh_config')
06:59 LostSoul_ 1st or 2nd? :)
06:59 LostSoul_ I see, thanks :)
06:59 hemebond Former is the first. Latter is the last (or second)
06:59 LostSoul_ I saw usage of 2nd too, so I was not sure
06:59 LostSoul_ Thank you, I will remember that :)
06:59 LostSoul_ Why is the 2nd one worse or not working?
06:59 hemebond Yeah, you can use pillar['ssh_config'] but it's not encouraged.
06:59 LostSoul_ I see :)
07:00 hemebond There is, apparently, some subtle differences in behaviour between them.
07:00 LostSoul_ Then it's all clear now, thanks! :)
07:00 hemebond *There are
07:01 digitalhero joined #salt
07:02 bhosmer_ joined #salt
07:02 LostSoul_ Haha, true. Forgive for my english level. Many years and it's still not quite good
07:02 hemebond Ah, no, I was correcting my own sentence :-)
07:02 LostSoul_ Anyway, adding Jinja variables without pillar is only possible in same state file right?
07:02 LostSoul_ Haha :)
07:03 hemebond Kind of. You can import variable from another Jinja file.
07:03 digitalh_ joined #salt
07:03 hemebond You'll see that done in formulas where map.jinja contains the default values.
07:03 hemebond That map.jinja then gets imported into .sls files.
07:04 digitalhero joined #salt
07:05 hemebond So in formulas the map.jinja will fetch your Pillar data and merge it with the defaults and then provide that to the state files.
07:05 LostSoul_ I've got error on this ssh:
07:05 LostSoul_ Comment: Recursive requisite found
07:06 LostSoul_ Aaa, thanks hemebond :)
07:06 hemebond Is that on your state or are you trying to use the formula?
07:06 LostSoul_ those formulars seems to be great solution
07:06 LostSoul_ My own state
07:06 LostSoul_ I just wanted to get it working :)
07:06 hemebond Check the documentation on how to use them.
07:06 LostSoul_ Then I can use formulas, but amount of settings is kinda overwhelming
07:07 kliquori joined #salt
07:07 hemebond Unless you've updated your state already I can't see anything in there that should cause a recursion error.
07:07 LostSoul_ I will paste you output
07:07 evle1 joined #salt
07:08 LostSoul_ hemebond: http://pastebin.com/fCHK4MCt
07:08 digitalh_ joined #salt
07:09 hemebond Is your state file still the same?
07:09 LostSoul_ Yes
07:10 hemebond Only thing I can see that might cause it is the require service ssh.
07:10 LostSoul_ It's strange for me as everything seems to be right
07:10 LostSoul_ Why so?
07:10 hemebond Would it not be better to require the SSH package?
07:10 hemebond Well, it doesn't look bad to me, but that is the dependency declaration.
07:11 hemebond So your edit requires the service and your service watches the file.
07:11 hemebond What if you remove the require parameter?
07:12 LostSoul_ To require package I need to add it to state file right?
07:12 LostSoul_ I mean to define package is needed
07:12 hemebond Yeah.
07:14 LostSoul_ I see, thanks :)
07:20 nZac joined #salt
07:20 LostSoul_ hemebond: Is it possible to define 2 states under one name?
07:20 LostSoul_ I mean under ssh: can I use pkg.installed and service.running?
07:21 LostSoul_ Or I need to create 2 separated?
07:21 zer0def joined #salt
07:21 hemebond You can put them both under the same "name".
07:22 hemebond Because they're different modules, pkg and service.
07:23 LostSoul_ It worked like a charm :)
07:23 LostSoul_ Do you mind one more question?
07:24 hemebond Not at all. Ask away.
07:24 LostSoul_ http://pastebin.com/TR9tyAsR - is there way to write in shorter way?
07:26 hemebond You might be able to remove the -name parameter since it's the same as the state name.
07:26 hemebond But I don't know if that'll work when you have two modules in use in the same state.
07:27 hemebond If you were just installing the package you can juse have ssh:\n  pkg.installed
07:28 hemebond Other than that, it's about as minimal as you can get unless your service.running parameters are the same as the defaults; you'd have to check the documentation on service.running to find out.
07:28 LostSoul_ I guess it should be: pkg.installed: [] ? :)
07:28 hemebond Possibly, yeah.
07:28 LostSoul_ Thanks!
07:29 LostSoul_ This salt is great :)
07:30 LostSoul_ Ou, btw does it allow comments? I tried it in state file with "#" but it gone wrong and I got error on output
07:31 hemebond Line-level comments, yes.
07:32 hemebond YAML allows # for comments.
07:32 hemebond And all state and pillar files are YAML.
07:37 eseyman joined #salt
07:38 beardedeagle joined #salt
07:41 LostSoul_ Strange then
07:42 hemebond Are you getting an error with a comment?
07:48 LostSoul_ Yes
07:49 LostSoul_ I get that there is unproper sign '#' in jinja
07:49 LostSoul_ But I commented out 4 lines so this 'for' should not work at all
07:49 hemebond Oh, in Jinja, yeah. Comments in Jinja are block-level as far as I know, using {# #}
07:50 LostSoul_ Is there way in salt to extend things to second line?
07:51 hemebond Inside Jinja? I believe so, yes.
07:52 hemebond Have a look at the Jinja website and documentation.
07:52 hemebond Basically Salt will run your .sls file through Jinja first, then through a YAML parser.
07:52 hemebond So you can use anything in Jinja.
07:52 hemebond As long as you create a valid YAML file.
07:55 LostSoul_ I mean in pillar
07:55 hemebond It's the same.
07:55 LostSoul_ I did kinda long element of the list (cron)
07:55 hemebond All Pillar and State files (both use .sls extension)
07:55 LostSoul_ And wanted to split it into 2 lines
07:55 LostSoul_ But pillar are only in YAML (not jinja)
07:56 hemebond Pillars and states don't have their own format, they're just YAML after first being run through Jinja.
07:56 hemebond Both pillar and state files are run through Jinja first.
08:00 karlthane joined #salt
08:01 LostSoul_ I see so both are able to use jinja, great to know
08:01 hemebond By default, yes. You can actually use different templating engines and different data formats.
08:01 hemebond But by default they're run through Jinja and then YAML.
08:01 Fiber^ joined #salt
08:10 LostSoul_ Did you meet something like this: The function "state.highstate" is running as PID 32448 and was started at 2016
08:11 AndreasLutro it just means another state.highstate is already running
08:11 hemebond That looks formal.
08:11 LostSoul_ Strange
08:11 LostSoul_ But I guess I got that after setting up network
08:11 LostSoul_ I can't find in ps aux and state process
08:12 hemebond On the master?
08:12 LostSoul_ On both
08:12 LostSoul_ It's strange as I got that error, then runned it again 2-3 times and now I can't salt it again
08:15 LostSoul_ After restarting master I got:
08:15 LostSoul_ Minion did not return. [No response]
08:15 LostSoul_ And then again:
08:15 hemebond Minion might have hung or something.
08:15 LostSoul_ The function "state.highstate" is running as PID 2612 and was started at 2016
08:15 LostSoul_ I restarted it also :/ No changes
08:16 beardedeagle does anyone know what matches can be used with salt-api?
08:16 hemebond Hmmm.
08:16 beardedeagle matchers*, even
08:17 LostSoul_ Strange things are going on right now :O
08:21 babilen LostSoul_: You might have two minion processes running
08:21 tercenya joined #salt
08:27 beardedeagle salt.PostLowDataAdapter('*', 'pip.install', 'requests', 'upgrade=True'), would be great to do something other then glob matching for minions through salt-api. not seeing anything in the code or in the docs though about matchers.
08:28 babilen beardedeagle: I recent discussion in here or the ml left me with the impression that you can use globbing only
08:28 GreatSnoopy joined #salt
08:28 babilen You might be able to use the localclient for fancier things - have you checked for issues regarding this?
08:29 beardedeagle hrm, that sucks. I wrote an improved salt-api client/cli and was hoping to add that in as a feature. I can pass clients, but that really only matters as in local vs async vs runner type stuff
08:30 LostSoul_ I guess I've found bug in salt :P
08:30 LostSoul_ I got:  Minion did not return. [No response]
08:31 hemebond LostSoul_: That means your minion isn't working.
08:31 LostSoul_ Then: Rendering SLS 'base:nagios/cron' failed: Jinja variable 'cron_tasks' is undefined   - which is not true
08:31 LostSoul_ And then series of:
08:31 LostSoul_ The function "state.highstate" is running as PID 8365 and was started at 2016, Mar 12 09:25:23.420195 with jid 20160312092523420195
08:31 LostSoul_ The function "state.highstate" is running as PID 10392 and was started at 2016, Mar 12 09:30:13.471522 with jid 20160312093013471522
08:31 LostSoul_ And so on and on
08:31 hemebond We'd need to see your states and pillars.
08:32 babilen LostSoul_: Yes, did you check if you have two minion processes running?
08:32 hemebond Also, how are you triggering the highstate?
08:33 babilen s/two/multiple I guess :)
08:33 LostSoul_ babilen: LOL, LOL and so big lol - you were right
08:33 LostSoul_ Question is what started it
08:33 babilen Which is why I mentioned it earlier ;)
08:34 LostSoul_ Strange tbh I only did restart - is it possible it started new instance instead of killing old one before and starting new?
08:35 LostSoul_ Btw as you all are here .. Is there way to get response from minion after setting up network?
08:36 linjan joined #salt
08:36 hemebond You can view the output of previous jobs.
08:36 hemebond salt-run jobs.*
08:38 beardedeagle babilen: HA! http://stackoverflow.com/questions/28064098/salt-api-use-other-matching-method-other-then-glob
08:38 beardedeagle time to add this in
08:39 beardedeagle From a salt client aspect, I have LocalClient, Runner and Wheel written out already. Using click to build the cli portion.
08:41 beardedeagle so salt.modules.match should give me what i need
08:43 jfelchner_ joined #salt
08:47 mavhq joined #salt
08:50 bhosmer_ joined #salt
08:52 cyberviking joined #salt
08:56 cyborg-one joined #salt
08:56 cyborglone joined #salt
09:04 cyberviking joined #salt
09:05 LostSoul_ I tried to use jinja is defined
09:05 LostSoul_ But when variable is not define I got blank line - is there way to avoid it?
09:08 kliquori joined #salt
09:21 nZac joined #salt
09:21 hemebond You mean to test for a variable?
09:21 hemebond A simple "if" statement should work.
09:26 LostSoul_ I test it but when it's empty I got empty line
09:26 LostSoul_ And Yaml is not going well
09:26 hemebond The empty line might be where the Jinja line is.
09:26 hemebond An empty line shouldn't break the YAML though.
09:27 babilen beardedeagle: Ah, so you can pass the normal expr_from .. wonderful, I'll keep that in mind
09:28 beardedeagle yarp, already got it working in my stuff
09:28 babilen \o/
09:29 beardedeagle this started as a rest client library to be middleware for my multimaster dashboard
09:29 beardedeagle evolved into something else lol
09:34 LostSoul_ I need help with this:
09:34 LostSoul_ http://pastebin.com/BvnvpmTY
09:34 LostSoul_ I'm trying to find what I'm doing wrong and can't ..
09:35 hemebond What is line 8?
09:35 hemebond Ah the cron job?
09:35 hemebond Do you have quotes around it in the actual state file and a colon at the end of the line?
09:36 cberndt joined #salt
09:36 babilen LostSoul_: Make the web a better place and don't use pastebin.com - One of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … or any of the many alternatives will do nicely
09:37 LostSoul_ babilen: Sure, np - but why so :P?
09:37 mavhq joined #salt
09:38 LostSoul_ hemebond: Can you re-write this?
09:38 babilen It is ugly, full of unnecessary "social media" integration, makes you enter CAPTCHAS every now and then, mangles whitespace sometimes (not sure if that is still an issue), .... it simply preys on the fact that people google for "pastebin" and end up on their website
09:38 LostSoul_ I see, thanks babilen
09:38 LostSoul_ Sure, I can go with website of that kind
09:39 babilen ta
09:40 beardedeagle gist ftw
09:40 babilen LostSoul_: Could you paste the corresponding state?
09:42 elsmo joined #salt
09:45 LostSoul_ Sure
09:47 LostSoul_ https://www.refheap.com/12e20702a22a9604f78467731
09:51 babilen LostSoul_: You are probably missing a trailing ":" after '{{ task.command }}' (depending on its value)
09:52 babilen And I'd like to point out https://docs.saltstack.com/en/latest/topics/jobs/schedule.html as an alternative to cron jobs
09:52 LostSoul_ worked ...
09:53 LostSoul_ Ou man, after talking with babilen and hemebond - I feel so stupid!
09:54 LostSoul_ Just kidding, but thanks guys, I've learned a lot. I would be good to stick more with docs or some book, but docs didn't convince me to read it as it's not so easy to follow up
09:55 kliquori joined #salt
09:55 cyberviking joined #salt
09:56 hemebond I found the tutorial quite good, though it took me a while to get my head around the YAML format and how Salt was using it in states.
09:56 hemebond The old module.function format type stuff.
09:57 scarcry joined #salt
10:01 Nazzy joined #salt
10:05 AndreasLutro https://docs.saltstack.com/en/getstarted/ this is very good for people new to salt
10:06 AndreasLutro the docs work best as a reference once you've got the basics down
10:08 beardedeagle Night all, too tired and braindead to want to implement the websockets /ws endpoint.
10:10 digitalhero joined #salt
10:11 Nazca__ joined #salt
10:13 Nazzy joined #salt
10:14 west575 joined #salt
10:15 Trauma joined #salt
10:19 west575 joined #salt
10:24 elsmo joined #salt
10:29 LostSoul_ Something weird is going on with my salt-minion
10:30 LostSoul_ It starts out of nothing 2-5 instances of salt-minion
10:30 LostSoul_ Is it normal?
10:35 hemebond I have two running.
10:35 hemebond I think it creates a new process for jobs.
10:38 bhosmer_ joined #salt
10:38 cyborg-one joined #salt
10:49 LostSoul_ I guess I did it wrong
10:49 LostSoul_ And started it in bad way
10:52 AndreasLutro if you use ps axf you'll be more able to see whether the extra salt-minions are subprocesses/threads or not
10:53 LostSoul_ AndreasLutro: I saw some
10:54 LostSoul_ Thing is that salt started salt-master (actually restarted salt-master) with service restart and I did it with /etc/init.d/ start scripts
10:54 LostSoul_ And it lanched salt-master like 2 independent instances .. And everything went wrong because of that
10:54 LostSoul_ Man, I've learned so much just by working with salt for a while
10:57 mavhq joined #salt
10:58 mavhq joined #salt
11:00 cyborg-one joined #salt
11:13 mavhq joined #salt
11:15 Nazca joined #salt
11:20 aqua^c joined #salt
11:21 mavhq joined #salt
11:22 nZac joined #salt
11:24 mavhq joined #salt
11:36 mavhq joined #salt
11:39 mavhq joined #salt
11:44 rmnuvg joined #salt
11:45 mavhq joined #salt
11:53 mavhq joined #salt
11:56 mavhq joined #salt
11:57 kliquori joined #salt
11:59 malinoff joined #salt
12:02 mavhq joined #salt
12:03 dmaiocchi joined #salt
12:08 mavhq joined #salt
12:16 linjan joined #salt
12:18 slav0nic joined #salt
12:20 mavhq joined #salt
12:20 digitalhero joined #salt
12:24 mavhq joined #salt
12:26 bhosmer joined #salt
12:40 SunPowered joined #salt
12:44 kliquori joined #salt
12:46 elsmo joined #salt
12:48 elsmo joined #salt
12:56 chmod666org joined #salt
12:58 mavhq joined #salt
13:04 chmod666org joined #salt
13:06 mdasilva joined #salt
13:07 WizJin joined #salt
13:10 malinoff joined #salt
13:10 amcorreia joined #salt
13:19 feld joined #salt
13:22 nZac joined #salt
13:27 eightyeight joined #salt
13:36 _JZ_ joined #salt
13:37 virtualguy joined #salt
13:37 cyborg-one joined #salt
13:46 mavhq joined #salt
13:49 mavhq joined #salt
13:54 flowstate joined #salt
13:58 wych joined #salt
14:01 linjan joined #salt
14:04 malinoff joined #salt
14:05 cliffstah joined #salt
14:09 mavhq joined #salt
14:15 irctc292 joined #salt
14:15 mavhq joined #salt
14:20 mavhq joined #salt
14:23 mavhq joined #salt
14:23 nZac joined #salt
14:25 mavhq joined #salt
14:25 digitalhero joined #salt
14:27 mavhq joined #salt
14:30 mavhq joined #salt
14:33 mavhq joined #salt
14:33 fracklen joined #salt
14:34 elsmo joined #salt
14:37 shoemonkey joined #salt
14:39 shoemonk_ joined #salt
14:40 WizJin joined #salt
14:45 kliquori joined #salt
14:48 Nazzy joined #salt
14:52 rem5 joined #salt
14:54 irctc292 Hey everyone... I'm trying to use the Windows repo to install packages on to some minions and I keep running into this error: Could not find file from saltenv 'base', 'salt://win/repo/winrepo.p'". I've got the repo on my master, but I'm wondering if there's some sort of config I have to do on the master. Any suggestions on what I should look at?
14:55 nZac joined #salt
14:57 shiriru joined #salt
15:00 Nazca__ joined #salt
15:04 Nazzy joined #salt
15:08 Nazca__ joined #salt
15:08 malinoff joined #salt
15:08 malinoff joined #salt
15:10 Nazzy joined #salt
15:12 shoemonkey joined #salt
15:13 dmaiocchi joined #salt
15:20 khaije1 joined #salt
15:21 khaije1 I'd like to use jinja variables to share repeated data among my master.d/*.conf files in a DRY way ... is this posible?
15:23 khaije1 When I tried to add a #!jinja|yaml renderer it still produced an error on the '%' character in the first '{% set blah = "foo" %}' block
15:27 AndreasLutro khaije1: use file.recurse to populate the master.d directory, and specify template: jinja + context
15:27 fracklen_ joined #salt
15:27 Xopher joined #salt
15:27 calculon1 joined #salt
15:28 RandyT_ joined #salt
15:28 khaije1 woot, AndreasLutro, thats a great idea - thanks!
15:29 khaije1 so then the jinja will pull from pillar which is much better anyway
15:30 Jimlad_ joined #salt
15:31 iggy joined #salt
15:31 pprkut joined #salt
15:31 gerhardqux joined #salt
15:31 nahamu joined #salt
15:32 benjaminikuta joined #salt
15:32 kliquori joined #salt
15:32 r3tic3nc3 joined #salt
15:34 benjaminikuta join wikia-funorb
15:35 gtmanfred joined #salt
15:35 benjaminikuta Sorry, wrong chat.
15:35 fracklen joined #salt
15:35 tampakrap joined #salt
15:36 jcockhren joined #salt
15:37 r3tic3nc3 left #salt
15:39 ropes joined #salt
15:41 fracklen_ joined #salt
15:42 scooby2 joined #salt
15:43 drags joined #salt
15:43 N-Mi_ joined #salt
15:43 ecdhe joined #salt
15:44 maduro joined #salt
15:50 tyler-baker joined #salt
15:52 lumtnman joined #salt
15:56 lumtnman joined #salt
15:56 fracklen joined #salt
15:58 jeblair joined #salt
16:06 karlamrhein joined #salt
16:08 watersoul_ joined #salt
16:09 Miouge_ joined #salt
16:09 unusedPh- joined #salt
16:10 bstaz_ joined #salt
16:10 subsignal joined #salt
16:10 mrbobbytables_ joined #salt
16:10 zenlot6 joined #salt
16:11 ramblinpeck_ joined #salt
16:11 opdude_ joined #salt
16:11 themacproguy joined #salt
16:11 ventris_ joined #salt
16:12 muep_ joined #salt
16:12 czchen_ joined #salt
16:12 robins joined #salt
16:12 CaptTofu joined #salt
16:12 rnts_ joined #salt
16:12 arif-ali_ joined #salt
16:12 nobrak_ joined #salt
16:12 fracklen_ joined #salt
16:12 CaptTofu joined #salt
16:12 toddnni joined #salt
16:12 s0undt3ch joined #salt
16:13 sjorge joined #salt
16:13 sjorge joined #salt
16:13 jY joined #salt
16:13 KingJ joined #salt
16:13 riftman joined #salt
16:13 justanotheruser joined #salt
16:13 sagerdearia joined #salt
16:14 devtea joined #salt
16:14 justanotheruser joined #salt
16:15 Aleks3Y joined #salt
16:16 serverascode joined #salt
16:17 bVector joined #salt
16:17 twodayslate joined #salt
16:19 rmc3 joined #salt
16:19 khaije1 does the gitfs_remote fileserver support the use and access of submodules?
16:23 CeBe joined #salt
16:26 chrismoos joined #salt
16:26 liskl joined #salt
16:26 noraatepernos joined #salt
16:27 Gabemo joined #salt
16:28 pmcnabb joined #salt
16:28 cswang joined #salt
16:35 kliquori joined #salt
16:39 elsmo joined #salt
16:48 scoates joined #salt
16:48 benjaminikuta left #salt
16:49 seblu joined #salt
17:08 subsignal joined #salt
17:10 malinoff joined #salt
17:12 GreatSnoopy joined #salt
17:18 dmaiocchi joined #salt
17:27 evidence joined #salt
17:30 digitalhero joined #salt
17:36 serbentautas joined #salt
17:36 digitalh_ joined #salt
17:36 serbentautas So is it possible to run salt agentless or would I get crippled functionality?
17:36 kliquori joined #salt
17:37 AndreasLutro define agentless?
17:42 scoates joined #salt
17:42 evle joined #salt
17:44 serbentautas AndreasLutro: without an agent. :) I.E. via ssh.
17:44 serbentautas Like Ansible.
17:44 zahna joined #salt
17:45 AndreasLutro salt-ssh
17:45 MTecknology AndreasLutro: could you pick a number for me?
17:45 AndreasLutro no way
17:46 AndreasLutro echo $RANDOM
17:46 MTecknology :(
17:50 lero joined #salt
17:51 bhosmer joined #salt
17:53 amcorreia joined #salt
17:54 serbentautas AndreasLutro: is speed the only drawback of using salt that way?
17:58 AndreasLutro serbentautas: some missing features, some additional bugs
17:59 digitalhero joined #salt
18:05 ronnix joined #salt
18:08 nZac joined #salt
18:08 serbentautas AndreasLutro: what's missing?
18:12 Fiber^ joined #salt
18:15 AndreasLutro events/reactors, mine data, pillar matching
18:15 AndreasLutro off the top of my head
18:16 nZac joined #salt
18:21 kliquori joined #salt
18:32 babilen Some of those features might not be supported by ansible either
18:38 windyday joined #salt
18:39 windyday left #salt
18:43 WizJin joined #salt
18:45 bhosmer joined #salt
18:48 TyrfingMjolnir joined #salt
18:55 digitalhero joined #salt
18:55 lero joined #salt
19:02 mdasilva joined #salt
19:08 digitalhero joined #salt
19:09 N-Mi_ joined #salt
19:10 fracklen joined #salt
19:10 Nazca__ joined #salt
19:22 kliquori joined #salt
19:27 fracklen joined #salt
19:34 dmaiocchi joined #salt
19:38 WizJin joined #salt
19:38 digitalhero joined #salt
19:39 Rayston joined #salt
19:39 bhosmer joined #salt
19:40 mdasilva joined #salt
19:41 mavhq joined #salt
19:42 subsignal joined #salt
19:44 digitalhero joined #salt
19:44 fracklen joined #salt
19:45 bhosmer joined #salt
19:45 cliffstah joined #salt
19:46 Rayston left #salt
19:46 SunPowered joined #salt
19:49 lero joined #salt
19:51 flowstate joined #salt
19:54 dendazen joined #salt
19:57 mavhq joined #salt
19:58 fracklen joined #salt
20:05 brianfeister joined #salt
20:07 mdasilva joined #salt
20:08 kermit joined #salt
20:15 Eureka703 joined #salt
20:15 locke joined #salt
20:15 fracklen joined #salt
20:15 shoemonkey joined #salt
20:16 locke joined #salt
20:16 locke joined #salt
20:20 lungaro i'm a little confused on what salt-call --id does. I'm running state.highstate in local mode, and it seems that if I pass "--id dbs" more states apply. However the hostname is already dbs.
20:21 lungaro Where do I find out more about how salt id works?
20:25 locke left #salt
20:26 quasiben joined #salt
20:29 fracklen joined #salt
20:34 cberndt joined #salt
20:35 brianfeister joined #salt
20:43 hasues joined #salt
20:43 hasues left #salt
20:44 brianfeister joined #salt
20:45 digitalhero joined #salt
20:47 brianfeister joined #salt
20:48 fracklen joined #salt
20:51 Sndwch joined #salt
20:51 Sndwch hola amigos
21:12 kliquori joined #salt
21:16 subsignal joined #salt
21:19 justanotheruser joined #salt
21:28 subsignal joined #salt
21:30 cliffstah joined #salt
21:32 digitalhero joined #salt
21:45 bhosmer joined #salt
21:47 ggoZ joined #salt
21:50 catpig joined #salt
21:58 evle1 joined #salt
22:10 cyborglone joined #salt
22:13 kliquori joined #salt
22:16 shoemonkey joined #salt
22:18 nikogonzo is anyone building zpools with salt/pillar?
22:20 nikogonzo this is the only example i've found, but without an example pillar it's a little hard to understand what this person is doing: https://github.com/hoonetorg/salt-zfs-formula
22:21 hoonetorg that's me
22:22 hoonetorg you need a pillar example
22:22 nikogonzo cool!
22:22 nikogonzo yes please
22:22 hoonetorg is one of my 1st formulas and not much like the template formula yet
22:23 nikogonzo that's okay, i'm just mining ideas right now
22:24 hoonetorg give me a few minutes
22:25 nikogonzo sure thing, i appreciate it
22:30 nikogonzo if you're doing anything like cmd.run 'zpool create foo mirror <d1> <d2> mirror <d3> <d4> mirror <d5> <d6> ...' using pillar that's really what i'm after
22:32 hoonetorg added a pillar.example at https://github.com/hoonetorg/salt-zfs-formula
22:33 hoonetorg try, feel free to ask questions
22:34 khaije1 joined #salt
22:34 nikogonzo okay, thanks so much
22:34 dmaiocchi joined #salt
22:35 nikogonzo hoonetorg: interesting, is the  data that gets written to the cache disk also encrypted?
22:35 hoonetorg no
22:35 hoonetorg the ssd is an opal drive (self-encrypting)
22:35 nikogonzo oh neat
22:36 hoonetorg but you can also define another luks volume for cache if you like :)
22:36 hoonetorg and you can also define log/zil
22:37 brianfeister joined #salt
22:39 hoonetorg you can omit module_opts and kernel_opts
22:41 zenlot joined #salt
22:41 hoonetorg nikogonzo: which os/version (i tested on el7)
22:43 nikogonzo hoonetorg: it'll ubuntu 14.04, but all the installation has been taken care of and I won't be doing customization of arc or sysctl.vm
22:44 nikogonzo have you figured out any good way to compute vm.min_free_kbytes for systems of different memory sizes?
22:44 nikogonzo same for arc_min arc_max
22:45 bhosmer joined #salt
22:49 hoonetorg 'JAVA_OPTS' : -Xmx{{(grains['mem_total']*0.7)|round|int}}M
22:49 hoonetorg something like that in the pillars
22:50 hasues joined #salt
22:50 hasues left #salt
22:50 hoonetorg grain mem_total is in M(i)B ??
22:50 lero joined #salt
22:51 hoonetorg so you need to define your factors against mem_total
22:52 hoonetorg nikogonzo:^^^
22:53 nikogonzo magic, thanks
23:02 digitalhero joined #salt
23:02 nikogonzo hoonetorg: http://hastebin.com/etatituyok.vbs  this was my only error, seems that maybe we have to escape the quotes or spaces in pillar now
23:02 nikogonzo everything else went swimmingly, thanks for your help
23:04 hoonetorg nice
23:05 hoonetorg comment was only an example for pool opts
23:06 hoonetorg you can omit that pillar if you like
23:06 hoonetorg nikogonzo: but it would be nice if that works as expected
23:10 nikogonzo i took everything before zfs__pool_create_ out
23:11 hoonetorg feel free :)
23:16 nikogonzo hoonetorg: i pass -f to zfs create beacuse i didn't efi,  do you know if the pool is exported at the time that this state is used (e.g. in a highstate) will it destroy data in the pool? the `zfs create` command will run beacuse `zfs list pool` will fail
23:17 scoates joined #salt
23:18 justanotheruser joined #salt
23:19 hoonetorg you mean zpool create regarding efi?
23:19 hoonetorg no export is done in this formula
23:19 hoonetorg nikogonzo ^^^
23:21 hoonetorg i omitted to use zfs create -f or zpool create -f to ensure no data is destroyed
23:22 euidzero joined #salt
23:26 nikogonzo i just mean that in the event of, for example if a maintenance is occurring where someone has to export the zpool but salt-minion is still doing highstate
23:26 nikogonzo i will test it in a bit, my vagrant environment is slow x_x
23:26 hoonetorg ah i understand
23:27 hoonetorg unless: zpool list {{pool}} || zpool import -f {{pool}}
23:27 hoonetorg that either pool is online or pool can be imported
23:27 nikogonzo good point, thank you
23:28 hoonetorg so this formula will try to import the pool if exported
23:28 hoonetorg if that fails, it will try to create one
23:29 hoonetorg still i wouldn't use zpool create -f
23:29 nikogonzo yeah that is probably the best thing to do
23:29 nikogonzo lol
23:31 khaije1 the salt formula looks amazing! Looking forward to learning and using it.
23:31 khaije1 Any pointers on good examples uses?
23:34 hoonetorg nikogonzo: 00:34 in my timezone -> time for bed
23:34 hoonetorg :)
23:35 hoonetorg if you hv further questions, i'll answer later :)
23:36 jesusaur joined #salt
23:37 bucky joined #salt
23:39 cberndt joined #salt
23:39 brianfeister joined #salt
23:39 nikogonzo hoonetorg: i am all set, thanks again and good night
23:42 hasues joined #salt
23:42 hasues left #salt
23:50 pppingme joined #salt
23:53 mavhq joined #salt
23:59 bujordan_ joined #salt

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