On Monday, August 22, 2016 at 4:54:31 AM UTC-5, Greg Sutcliffe wrote:
>
> On 20 August 2016 at 03:34, Mike Wilson <[email protected] <javascript:>> 
> wrote:
>
>> I am hoping to find some tutorials for two features I'd like to 
>> experiment with. I've just recently been exposed to Foreman and found it's 
>> existence a gawd send.
>>
>
> Welcome, glad you like it :)
>  
>
>> What I'd like to find is a tutorial on a basic puppet configuration down 
>> to a host. Using something like network that will configure the hosts 
>> interface/aliases/etc. I've experience doing this the old fashion way (a 
>> node file for the host with the parameters filled in there like this. <snip>
>>
>> Where does this part of a puppet module get configured into foreman 
>> puppet controls? I'd be happy to run through a video and/or webpage 
>> walkthru if someone can point me to it.
>>
>
> It strongly depends on your puppet modules. It looks like your puppet 
> module has uses a "define" for "netif::interface", and due to how Puppet 
> works, ENCs (which Foreman is) cannot directly declare defines, only 
> classes. You'll want to look at 
> http://projects.theforeman.org/projects/foreman/wiki/Instantiate_Puppet_resources
>  
> for the common patterns used to work around this. In short, the usual way 
> is to use a wrapper class and a hash of data declared in Foreman.
>

This was very helpful thanks! I grabbed the puppetlabs/accounts from puppet 
forge and installed and then wrote a wrapper and pushed yaml data to it and 
it worked. (unrelated to foreman, now I need to see if I can  do what 
foreman does but in puppet and make the class.users() accept a yaml file 
somehow.


> The other question relates to vmware and Foreman. I've seen some videos 
>> where folks were able to configure the parts of a VM directly and Foreman 
>> seemed to be able to generate the VM side and also manage the kickstart 
>> parts as well. So far I've just been manually creating the empty VM in 
>> vSphere and configuring Foreman to kickit as a bare metal host. I'd love to 
>> find a tutorial/walk thru for this as well.
>>
>
> These are Compute Resources - see 
> https://theforeman.org/manuals/1.12/index.html#5.2ComputeResources. In 
> your case, you'll want to install foreman-vmware and then head over to the 
> Compute Resources section of the UI to add a new resource. Once configured, 
> you'll be able to select that resource when creating new hosts.
>

That was exactly what I needed. I was able to get it connected to vsphere 
and it'll build up a vm and then kick it. Once again thanks for the link.
 

>
> Hope that helps! Ask away if you're still unclear :)
> Greg
>

Do you have any suggestions for reading material on setting up a 
distributed setup? Something like a "master" foreman host and then 
satellite foreman hosts? We have pops spread across the US/EU and Asia and 
we'd like to have "local" foreman hosts manage locally but those foreman 
hosts should somehow share the groups/templates/etc from the "master" 
foreman host.

Thank you very much for your assistance.
 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to