Giter Club home page Giter Club logo

foreman_setup's Introduction

foreman_setup

Setting up Foreman for provisioning can be daunting at first, as there are lots of parameters to configure DHCP and DNS for the installer, plus for setup of subnets, domains, installation media etc for Foreman.

Installation

Please see the Foreman wiki for appropriate instructions:

The gem name is "foreman_setup". Run foreman-rake db:migrate after installation.

RPM users can install the "tfm-rubygem-foreman_setup" or "rubygem-foreman_setup" packages.

Compatibility

Foreman Version Plugin Version
<= 1.4 ~> 1.0
>= 1.5 ~> 2.0
>= 1.9 ~> 3.0
>= 1.12 ~> 4.0
>= 1.13 ~> 5.0
>= 1.17 ~> 6.0
>= 1.22 ~> 7.0
>= 3.2 ~> 8.0

Areas this should help

  • take input of subnet and domain information
  • output foreman-installer command with appropriate DHCP, DNS and TFTP parameters
  • add foreman-installer modules to the Foreman host with appropriate parameters
  • create a host group with appropriate parameters
  • create hosts (proxies/nodes) using created host groups
  • ensure provided templates and OSes are fully associated
    • default templates should be properly associated in core
    • when using Katello, its Foreman plugin helps associate
  • add appropriate installation media
  • add appropriate Spacewalk/redhat_register parameters

Copyright

Copyright (c) 2013 Red Hat Inc.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

foreman_setup's People

Contributors

ares avatar dlobatog avatar dmitri-d avatar domcleal avatar ekohl avatar ezr-ondrej avatar gregsutcliffe avatar lzap avatar mmoll avatar mzima avatar rbuj avatar stbenjam avatar unorthodoxgeek avatar upadhyeammit avatar yamakasi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

foreman_setup's Issues

Deface < 1.0 conflicts

With foreman_discovery - uses deface 1.0.1
With fog - deface < 1 depends on nokogiri ~> 1.4.3, fog uses 1.6.3.1

Error after validating step 3 "foreman-installer"

from production.log :

Started POST "/foreman_setup/provisioners/3/step4" for xxx.xxx.xxx.xxx at 2014-02-10 22:30:25 +0100
Processing by ForemanSetup::ProvisionersController#step4 as HTML
Parameters: {"authenticity_token"=>"xxxxxxxxxxxxxxxxxx", "id"=>"3"}
Rendered vendor/ruby/1.9.1/gems/foreman_setup-1.0.4/app/views/foreman_setup/provisioners/_step4.html.erb (64.4ms)
Rendered vendor/ruby/1.9.1/gems/foreman_setup-1.0.4/app/views/foreman_setup/provisioners/step4.html.erb within layouts/application (64.8ms)
Operation FAILED: cannot load such file -- uglifier
Rendered common/500.html.erb within layouts/application (2.6ms)
Rendered layouts/base.html.erb (1.0ms)
Completed 500 Internal Server Error in 569.7ms (Views: 4.5ms | ActiveRecord: 0.0ms)

postinst of the debian package fails

I got an issue when tring to install the plugin using the deb package (I'm running Debian Wheezy).
I eventually found out that the postinst script logged everything in /var/log/foreman-installer.log so I could identify the issue : the gem has a dependency on deface which needs nokigiri which itself requires libxslt-dev and libxml2-dev to build successfully.
I don't really know if something can be done on the packaging side, but maybe something about this issue could be added to the README ?

Installation media setup should support Spacewalk

The install media setup page is intended to allow selection between a normal install media URL or a Spacewalk/Sat5 server, then generate the install media URL just based on the Spacewalk hostname.

foreman-installer

When I ran foreman-installer

Here is the result:

/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- kafo (LoadError) from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/sbin/foreman-installer:5:in `

'

Recognize katello-installer

When using foreman_setup and katello, it produces output for foreman-installer. Instead, the output should be katello-installer and options (--foreman-proxy) should be replaced by --capsule options.

Unable to set more than 1 provisioning setup

Once you create a provisioning setup, it's impossible to go through the wizard again to setup new networks. In my case I'm setting up a home network and a libvirt network, yet I have to remove the 'setup' object in order to create a new provisioning setup.

wrong arguments used in step 3 "Foreman Installer"

Wrong arguments:
--foreman-proxy-parent-fqdn=
--foreman-proxy-foreman-oauth-key
--foreman-proxy-foreman-oauth-secret

Correct Arguments:
--foreman-proxy-content-parent-fqdn
--foreman-proxy-oauth-consumer-key
--foreman-proxy-oauth-consumer-secret

RPM version: tfm-rubygem-foreman_setup-7.0.0-1.fm1_24.el7.noarch

Thanks

Docs

Hello
Are there any docs how to use this in hiera with foreman?
Actually, I couldn't find any docs whatsoever for this plugin :/
Thanks

Wrong commandline is generated for atleast Katello-3.X

Installed this plugin under Katello-3.X and it generates the wrong commandline in foreman_setup/app/views/foreman_setup/provisioners/_step3.html.erb
It checks for Katello vs Foreman but Katello switched to foreman-installer instead of katello-installer since version 3.0 or higher (might even be since 2.4, I'm not sure)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.