12:02 PM
gwmngilfen
you could then search by mac to get hosts
12:02 PM
Singularity42
thats fancy and i will use it. I love consoles but terrible with the foreman console for some reason ;)
12:02 PM
gwmngilfen
given another 5 min i could probably do a 2-d array
12:02 PM
Singularity42
its k
12:02 PM
gwmngilfen
but you get the idea :P
12:03 PM
Poornima joined the channel
12:03 PM
Singularity42
indeed. tyvm
12:06 PM
gwmngilfen: now that I have you... is there documentation for the console?
12:06 PM
gwmngilfen
only in so far as it's a normal Rails console. we don't really do anything foreman-specific
12:06 PM
Singularity42
gotcha
12:06 PM
gwmngilfen
so, as per usual, you have access to all the Models, etc
12:08 PM
tbh, what i gave you is overly complicated - you could just do Nic::Base.all.map(&:mac).compact.sort
12:08 PM
jsherrill_afk is now known as jsherrill
12:08 PM
Singularity42
thanks again. i rarely use the console but it seems to be very helpful when needed to do odd tasks
12:09 PM
gwmngilfen
definitely
12:13 PM
bbuckingham-afk is now known as bbuckingham
12:16 PM
akarsale has quit
12:17 PM
amitKarsale joined the channel
12:18 PM
bryan_kearney joined the channel
12:18 PM
cchase has quit
12:19 PM
alvinstarr joined the channel
12:20 PM
cchase joined the channel
12:20 PM
imcleod joined the channel
12:25 PM
toi has left the channel
12:27 PM
jyejare has quit
12:27 PM
jyejare joined the channel
12:28 PM
cchase has quit
12:28 PM
cchase joined the channel
12:29 PM
cchase has quit
12:29 PM
malevolent joined the channel
12:30 PM
sjagtap has quit
12:31 PM
Snickers joined the channel
12:31 PM
_nono_ joined the channel
12:32 PM
sjagtap joined the channel
12:33 PM
igorgarciaruiz has quit
12:33 PM
cchase joined the channel
12:34 PM
hprakash has quit
12:36 PM
davideagle has quit
12:36 PM
ranjank has quit
12:39 PM
mhulsman joined the channel
12:40 PM
inecas joined the channel
12:41 PM
cchase has quit
12:42 PM
mhulsman joined the channel
12:42 PM
cchase joined the channel
12:44 PM
karimb joined the channel
12:48 PM
jeffreylevesque joined the channel
12:48 PM
jeffreylevesque
does it matter if i install foreman, or puppetserver first?
12:50 PM
gmccullough joined the channel
12:51 PM
aupadhye has quit
12:51 PM
ranjank joined the channel
12:52 PM
lphiri has quit
12:52 PM
tmilam joined the channel
12:52 PM
ichimonji10 joined the channel
12:53 PM
gwmngilfen
a default run of foreman-installer will include a puppetserver anyway, so I'd go for that
12:53 PM
lphiri joined the channel
12:53 PM
tmilam
is there a way to specify a predefined key pair to use with AWS instance provisioning?
12:54 PM
einjen_
one question: I added the bmc module to the foreman proxy, and I see in the infrastructure-smart-proxies, that it's enabled
12:55 PM
bbut on the host list, I do not get an option to reboot discovered hosts
12:55 PM
witlessb has quit
12:55 PM
witlessb joined the channel
12:55 PM
even though the discovered hosts all have been identified with correct ip address for ipmi
12:56 PM
gwmngilfen
tmilam: no, foreman uses your api key to add it's own key. you can always add more keys to auth_keys in the finish script though
12:56 PM
einjen_: i'm not sure about the interaction of bmc and discovery ^ lzap?
12:57 PM
einjen_: for normal hosts you'd have to add a BMC nic in Foreman to show the power controls
12:57 PM
einjen_
gwmngilfen: this is a katello install, if it matters
12:57 PM
gwmngilfen
i don't think it does
12:57 PM
einjen_
I tried regular foreman a few months ao, and then the bmc module worked
12:57 PM
tmilam
thanks gwmngilfen
12:57 PM
einjen_
or, I configured it correctly then, and not now.
12:58 PM
ipmitool from cli works as expected
12:58 PM
gwmngilfen
einjen_: check it works for ordinary hosts - my guess is that the discovery plugin isn't bmc-aware, but I don't know for sure
12:58 PM
failing that, hit up the mailing list as i think most of the discovery ppl are afk just now
12:58 PM
einjen_
i do think it is, because it recogize all four nics + ipmi interface
12:59 PM
gwmngilfen
thats just facts from puppet, iirc
12:59 PM
einjen_
it even detect the ipmi ip address
12:59 PM
davideagle joined the channel
12:59 PM
gwmngilfen
i have no bmc hardware to test on though :)
12:59 PM
so, yeah, i'd either try back later or hit up the mailing list for a more async conversation on it
12:59 PM
jeffreylevesque
gwmngilfen: do you think it's more robust to install puppetserver, and install foreman through a maintained puppet module?
13:00 PM
einjen_
ok
13:00 PM
thanks
13:00 PM
jeffreylevesque
13:00 PM
gwmngilfen
jeffreylevesque: the foreman-installer is a set of puppet modules - you can run the installer and then import the installer modules to maintain it. thats what i do
13:00 PM
jeffreylevesque
ok
13:00 PM
13:01 PM
gwmngilfen
13:01 PM
jomitsch-afk is now known as jomitsch
13:04 PM
einjen_
regarding puppet: When I'm provisioning my hosts, they do not have puppet installed when they are finished installing. I'm using centos. Is there some additional repos I need to have enabled?
13:04 PM
epel?
13:06 PM
gwmngilfen
iirc puppet is in epel, yes
13:06 PM
einjen_
ah
13:07 PM
gwmngilfen
13:07 PM
einjen_
reboot and retry, then
13:07 PM
gwmngilfen
is it attempting to install puppet and failing to find it, or not even trying that?
13:07 PM
you can check the rendered template for the host to see if puppet/epel are listed
13:07 PM
(Host > Templates > Review Provision Template)
13:08 PM
einjen_
not sure, but the nodes does not have access to epel because they are on closed subnet. I have only enabled centos Base repo on foreman server
13:08 PM
jcalla joined the channel
13:09 PM
gwmngilfen
well, obviously to install puppet they'll have to be able to get an rpm from somewhere :)
13:09 PM
Singularity42
i am working on that very same thing right now and have an interesting issue I have yet to figure out. The script returns the Fedora epel repo for ALL linux hosts, even when the OS is not Fedora
13:09 PM
also using centos einjen_
13:10 PM
jeffreylevesque
13:11 PM
gwmngilfen
Singularity42: there is no other epel - epel is a set of packages for rhel-like OSs based on Fedora's packages
13:11 PM
13:11 PM
devmodem has quit
13:11 PM
devmodem joined the channel
13:12 PM
jeffreylevesque: yep, you absolutely need a proper fqdn, even for a sandbox env. ofc, you can just make one up (foreman.sandbox.local?)
13:13 PM
Singularity42
gwmngilfen: sorry. I mean difference between Fedora and Cento Repo for downloading puppet
13:14 PM
fedora vs. el
13:15 PM
dyasny joined the channel
13:15 PM
einjen_
gwmngilfen: thanks.... I see in the provisioning template that there is an option to give repository (url). May I add available repositories? how?
13:16 PM
gwmngilfen
13:16 PM
devmodem has quit
13:16 PM
kavita has quit
13:16 PM
einjen_: where are you looking? just so i know which thing you're altering :)
13:17 PM
einjen_
host --> templates --> provisioning template
13:18 PM
gwmngilfen
einjen_: so the templates are entirely free fo your to edit to your requirements, the ones shipped are just what work for the majority. head over to Provisioning Templates and edit as you like (or clone and edit the new one)
13:18 PM
s/fo your/for you
13:18 PM
einjen_
i see in the config for provisioning templates, there is two puppet templates. puppet.conf and puppet_setup
13:18 PM
I should probably look into these
13:19 PM
AshishH has quit
13:19 PM
gwmngilfen
indeed, those are what we call snippets - reusable template chunks that can be included in other templates
13:19 PM
helps to reduce duplication across templates
13:20 PM
einjen_
sorry. I'm VERY new to all this. both puppet and foreman :/
13:20 PM
trying to replace rocks Cluster software :)
13:20 PM
gwmngilfen
einjen_: no need to be sorry, we all had to start somewhere
13:21 PM
the thing to keep in mind is the Review button (or the Preview while editing a template) which allows you to see the Kickstart exactly as it will be sent to the host in question
13:22 PM
that'll help you check that the kickstart looks right before spending 20mins waiting for an install to fail ;)
13:22 PM
sean797 joined the channel
13:22 PM
jeffreylevesque
13:23 PM
aupadhye joined the channel
13:23 PM
gwmngilfen
maybe, it looks like yum didn't 100% like the puppetserver package.
13:24 PM
that said, if it's installed and working, it's probably fine
13:24 PM
you can re-run the installer again to make sure
13:24 PM
jeffreylevesque
is that production safe?
13:24 PM
i guess i can blow this away
13:24 PM
and redo
13:24 PM
gwmngilfen
its written in puppet, so it's automatically idempotent
13:25 PM
AshishH joined the channel
13:25 PM
tbh, it's your call. it's probably fine, but beeing 100% sure doesn't hurt if you have the time
13:25 PM
(assuming it is *actually* fine and the puppetserver is actually installed an running)
13:25 PM
Snickers has quit
13:25 PM
i've not seen that particular error about deltarpm before, tbh
13:26 PM
but i would expect further errors if it had completely failed to install
13:28 PM
inecas joined the channel
13:38 PM
jrist joined the channel
13:38 PM
JonnyV is now known as brahama
13:39 PM
blomquisg_gone is now known as blomquisg
13:40 PM
akofink has quit
13:43 PM
akofink joined the channel