[foreman-users] puppet errors

2017-07-07 Thread David Zuckerman
Hiya Katello/Foreman folks!

Sooo, I've inherited an instance here at work, and it has seemed to have 
broken, (the puppet end of it, I can build machines, but they're left 
unconfigured, and management of existing machines has also broken)... 

after running the following:
[PROD:root@uldcp-katello01:~/katello]#  katello-installer 
--certs-update-server
Marking certificate 
/root/ssl-build/uldcp-katello01.teletech.com/uldcp-katello01.teletech.com-apache
 
for update
Marking certificate 
/root/ssl-build/uldcp-katello01.teletech.com/uldcp-katello01.teletech.com-foreman-proxy
 
for update

it fails with the following:
(from /var/log/katello-installer/katello-installer.log)
[ERROR 2017-07-06 23:56:27 main]  Could not find any content at 
puppet:///modules/foreman/external_node_v2.rb
[ERROR 2017-07-06 23:56:27 main] 
 /Stage[main]/Foreman::Puppetmaster/File[/etc/puppet/node.rb]/ensure: 
change from absent to file failed: Could not find any content at 
puppet:///modules/foreman/external_node_v2.rb

So, I'm wondering if any of you have seen this before?

(running foreman version 1.10.4, and katello version 2.4)

Thanks in Advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] [Event] Next Foreman Community Demo - Thu 13 Jul 3pm [BST] - 8th Birthday Edition

2017-07-07 Thread greg . sutcliffe
Hi all

It's time for the next Foreman Community Demo! This time, the demo just
*happens* to be bang on our 8th birthday! So, join us at 3pm on Thu 13 Jul for a
special edition of the community demo, with special sauce on top of the usual
roundup of all the new & interesting developments from around our community.

As ever, more information is available on the event page [1] and the show
agenda is being compiled at the Foreman wiki [2]. If you have anything new,
cool tips, etc, that you'd like to share with the community, please do let me
know and I can arrange for you to be on the demo, or (if you can't make it) I
can demo for you.

As ever, we encourage live participation via the YouTube live chat, or in IRC
(#theforeman on Freenode). For those that can't attend, the video will be
posted to YouTube afterwards.

If you'd like to know when other Foreman events are happening, do check out our
Events page on the Foreman website [3].

[1] https://www.youtube.com/watch?v=sL8KylTcqsg
[2] 
http://projects.theforeman.org/projects/foreman/wiki/Current_Sprint_Information
[3] http://theforeman.org/events

Cheers!
--
Greg
IRC: gwmngilfen

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Finding parameters for a host

2017-07-07 Thread Brian Mc
Thanks for the reply Greg,

I am looking to consume the data through the API, and your docs link and 
the term 'ENC data' (which is new to me) helped me find the answer.

The docs on parameters mention at the end of section 4.2.3:
"To see how Foreman is passing the parameters to Puppet, go to a Host and 
click the YAML button. You will be shown the exact YAML data sent to the 
Puppet master - the parameters will be in the “parameters” hash."

The short version of my question was, how do I get that data from the API? 
The answer is via /api/hosts//enc

Many thanks for solving an issue that has been plaguing me for most of the 
week!
Brian


On Friday, July 7, 2017 at 10:21:45 AM UTC+1, Greg Sutcliffe wrote:
>
> On Wed, 2017-07-05 at 08:45 -0700, Brian McArdle wrote: 
> > Is my understanding above all correct? Is there a shortcut that I'm 
> > missing to finding out what values a host is using for a class? 
>
> It's already in the ENC data that Foreman sends to Puppet (assuming the 
> host is in the hostgroup in question). When the ENC YAML is compiled, 
> Foreman will parse the parameters from least specific to most specific, 
> overriding ones with the same name as it goes. So if your hostgroup has 
> "class foo -> parameter bar = quux" you should see that on your host 
> directly (check the YAML button on the host page). But if the host has 
> "class foo -> parameter bar = qaaz" then you'll see that instead. The 
> exact hierarchy is listed in the manual, see: 
>
> https://theforeman.org/manuals/1.15/#4.2.3Parameters 
>
> You don't actually say *where* you're trying to consume this data 
> though. I assume you're wanting it in Puppet, which should work out of 
> the box - anything in the ENC is passed to Puppet and should be used 
> directly. If you want to access it in templates, you can use "<%= 
> host_enc %>" (via http://projects.theforeman.org/projects/foreman/wiki/ 
> TemplateWriting#Functions-and-macros 
> ),
>  
> and from some other place, there 
> is an API call to get the host's ENC data (GET /api/hosts/:id/enc) 
>
> If want to access data for other hosts / hostgroups in Puppet 
> manifests, there are ways - but for brevity I'll not go into to that 
> yet. If that's what you're actually looking for, shout out :) 
>
> Greg 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Foreman host data not updating...

2017-07-07 Thread Greg Sutcliffe
The obvious candidate is that facts aren't being uploaded, but you say
that's not the case (maybe double-check with something that changes
frequently like uptime?)

The next step would be to get some logs from the Foreman production.log
during a puppet agent run - ideally with logging set to debug and the
various loggers turned on (see Logging under https://theforeman.org/man
uals/1.15/#3.5.2ConfigurationOptions). Put that in a pastebin and lets
have a look at it :)

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Plugin or tool to link Foreman to GIT

2017-07-07 Thread Greg Sutcliffe
On Mon, 2017-07-03 at 10:04 -0700, 1284ty...@gmail.com wrote:
> Hi All
> 
> I have been attemtping to use r10k as a tool to create dynamic
> environments with git and my puppet master, however i was wondering
> if there is a plugin or tool that would interface between a git repo
> and Foreman directly? 

What exactly are you looking for? Are we talking about deploying
classes to disk, or importing classes into Foreman after a deployment?

For the former, Foreman doesn't care how the classes get to the
puppetserver. I personally use a bare git repo (in
/var/lib/puppet/puppet.git) and a post-commit hook that checks out the
repo to /etc. r10k certainly works to, as does a variety of other
methods.

If you're talking about importing the classes into Foreman after a
deployment, then there's a rake task you can execute on the Foreman
host (foreman-rake puppet:import:puppet_classes). Be careful with this
though - the UI offers a chance to review the changes (especially which
classes have been deleted), but the rake task will import the changes
with no confirmation. Be sure your commits don't have syntax errors in
if you go down this road ;)

Greg


-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Foreman 1.15.1 user data template issue with EC2/AWS

2017-07-07 Thread Greg Sutcliffe
On Thu, 2017-06-29 at 16:25 -0700, Mike Wilson wrote:
> I am testing out AWS with foreman 1.15.1 and when I try and resolve
> the template during a creation I get the following error in the logs,
> the web interface simply says "Sorry no templates were configured."

The OS has a user-data template, that's good - but did you mark the
Image in Foreman as requiring user-data? By default I think they
default to SSH-based provisioning, and there's a checkbox to make it
use user-data.

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Finding parameters for a host

2017-07-07 Thread Greg Sutcliffe
On Wed, 2017-07-05 at 08:45 -0700, Brian McArdle wrote:
> Is my understanding above all correct? Is there a shortcut that I'm
> missing to finding out what values a host is using for a class?

It's already in the ENC data that Foreman sends to Puppet (assuming the
host is in the hostgroup in question). When the ENC YAML is compiled,
Foreman will parse the parameters from least specific to most specific,
overriding ones with the same name as it goes. So if your hostgroup has
"class foo -> parameter bar = quux" you should see that on your host
directly (check the YAML button on the host page). But if the host has
"class foo -> parameter bar = qaaz" then you'll see that instead. The
exact hierarchy is listed in the manual, see:

https://theforeman.org/manuals/1.15/#4.2.3Parameters

You don't actually say *where* you're trying to consume this data
though. I assume you're wanting it in Puppet, which should work out of
the box - anything in the ENC is passed to Puppet and should be used
directly. If you want to access it in templates, you can use "<%=
host_enc %>" (via http://projects.theforeman.org/projects/foreman/wiki/
TemplateWriting#Functions-and-macros), and from some other place, there
is an API call to get the host's ENC data (GET /api/hosts/:id/enc)

If want to access data for other hosts / hostgroups in Puppet
manifests, there are ways - but for brevity I'll not go into to that
yet. If that's what you're actually looking for, shout out :)

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Katello 2.4 capsule load balancing

2017-07-07 Thread Unix SA
hey, 

did you get chance to test it ?

On Friday, 6 May 2016 07:58:27 UTC+5:30, Andrew Schofield wrote:
>
> Apparently RH have a reference architecture for this. We are also testing 
> this shortly too. We will be migrating some  20k hosts to some 20 or so 
> Capsules!
>
> On Tuesday, April 5, 2016 at 4:42:01 PM UTC-4, George Lim wrote:
>>
>> We are planning to register thousands of machines for content management 
>> and some of our team members are concerned with performance and scaling. 
>> How can I create multiple capsule servers and place them behind a load 
>> balancer like F5? Without a capsule load balancing feature, do I need to 
>> write a script which round robin the ca consumer bootstrap and registration 
>> with the capsule servers?
>>
>> On Saturday, April 2, 2016 at 4:56:23 AM UTC-7, Eric Helms wrote:
>>>
>>> Can you clarify what you mean by "Capsule load balancing" ?
>>> On Mar 31, 2016 8:12 PM, "George Lim"  wrote:
>>>
 I just read somewhere that Katello 2.4 Capsule does not support Capsule 
 load balancing yet. Do you know if it's available Katello 3.0 RC or when 
 do 
 you think the feature will be added?

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Foreman users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to foreman-user...@googlegroups.com.
 To post to this group, send email to forema...@googlegroups.com.
 Visit this group at https://groups.google.com/group/foreman-users.
 For more options, visit https://groups.google.com/d/optout.

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.