Foreman installer

Is there a way I can use the foreman installer in a non-root environment? I don't have root so I can't install packages and my machine is firewalled off from the outside world so I would need to bring the foreman/epel repository in house to satisfy any gem dependancies. Has anyone written code to automated this? Any interested in something like this if the foreman installer can't perform this option?

Corey

Hey Corey,

We had a similar scenario. Had to compile our own version of ruby 1.9.3 and
install the gems. Compiled our own version of apache with passenger, etc,
etc… and then packaged it up and deployed it to these servers that don't
have root access or internet access. Works well. Haven't tried with Foreman
1.2 though

Make sure to add this in Foreman though, if using puppet as a gem:

echo "gem 'puppet'" > bundler.d/Gemfile.local.rb

And add to your settings.yaml:

:puppetgem: true

Foreman is portable, so just make sure to have ruby in your path and the
libs in your LD_LIBRARY_PATH

Jason

··· On Sunday, July 14, 2013 11:41:41 PM UTC-4, Corey Osman wrote: > > Is there a way I can use the foreman installer in a non-root environment? > I don't have root so I can't install packages and my machine is firewalled > off from the outside world so I would need to bring the foreman/epel > repository in house to satisfy any gem dependancies. Has anyone written > code to automated this? Any interested in something like this if the > foreman installer can't perform this option? > > > Corey >

> Hey Corey,
>
> We had a similar scenario. Had to compile our own version of ruby 1.9.3 and
> install the gems. Compiled our own version of apache with passenger, etc,
> etc… and then packaged it up and deployed it to these servers that don't
> have root access or internet access. Works well. Haven't tried with Foreman
> 1.2 though
>
> Make sure to add this in Foreman though, if using puppet as a gem:
>
> echo "gem 'puppet'" > bundler.d/Gemfile.local.rb

Ideally you would specify the puppet version to install here so that
it matches what you are using in your environment. IE: The contents of
the local Gemfile would be something like:
gem 'puppet', '2.7.22'

··· On Mon, Jul 15, 2013 at 4:21 PM, Jason Knudsen wrote:

And add to your settings.yaml:

:puppetgem: true

Foreman is portable, so just make sure to have ruby in your path and the
libs in your LD_LIBRARY_PATH

Jason

On Sunday, July 14, 2013 11:41:41 PM UTC-4, Corey Osman wrote:

Is there a way I can use the foreman installer in a non-root environment?
I don’t have root so I can’t install packages and my machine is firewalled
off from the outside world so I would need to bring the foreman/epel
repository in house to satisfy any gem dependancies. Has anyone written
code to automated this? Any interested in something like this if the
foreman installer can’t perform this option?

Corey


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+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.