Hi. I can't figure out how to enable importing classes in my new install of
foreman. There is no option when I go to Configuration > Classes. There is
only a button for documentation and a note "No entries found".
I'm logged in as the admin user.
I used the puppet forge module to install foreman
( https://forge.puppet.com/theforeman/foreman ) and it installed the 8.0.0
module instead of the laaatest.
But it successfully installed foreman 1.15.6…or as successfully as I can
tell.
My foreman installation wrapper looks like this:
class profile::foreman::server {
class { '::foreman':
}
}
My puppetserver is at version: 2.8.0
My postgresql-server is at version: 9.2.23
I have 2 other ideas to try:
I had thought the profile had chosen postgresql as the database, but in
the log /var/log/foreman/db_seed.log
I see:
rake aborted!
Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is
not loaded. Add gem 'sqlite3' to your Gemfile (and ensure its version is
at the minimum required by ActiveRecord).
…
Gem::LoadError: Could not find 'sqlite3' (~> 1.3.6) among 93 total gem(s)
The other idea is perhaps something to do with specifying which ssl
certificates foreman should use?
Hi,
I would recommend using the foreman-installer [1] in the future to install
foreman as it configures all the things to get your foreman running.
If you used just the foreman puppet module, I suspect you do not have a
smart proxy, which takes care of puppet classes import. You can verify by
going into Infrastructure > Smart proxies. There is a puppet module for
proxy too [2],
but you get the proxy installed by default together with foreman when
running the installer.
···
On Tue, Nov 7, 2017 at 9:32 PM, Peter K wrote:
Hi. I can’t figure out how to enable importing classes in my new install
of foreman. There is no option when I go to Configuration > Classes. There
is only a button for documentation and a note “No entries found”.
I’m logged in as the admin user.
I used the puppet forge module to install foreman ( https://forge.puppet.com/theforeman/foreman ) and it installed the 8.0.0
module instead of the laaatest.
But it successfully installed foreman 1.15.6…or as successfully as I can
tell.
My foreman installation wrapper looks like this:
class profile::foreman::server {
class { ‘::foreman’:
}
}
My puppetserver is at version: 2.8.0
My postgresql-server is at version: 9.2.23
I have 2 other ideas to try:
I had thought the profile had chosen postgresql as the database, but in
the log /var/log/foreman/db_seed.log
I see:
rake aborted!
Gem::LoadError: Specified ‘sqlite3’ for database adapter, but the gem is
not loaded. Add gem 'sqlite3' to your Gemfile (and ensure its version is
at the minimum required by ActiveRecord).
…
Gem::LoadError: Could not find ‘sqlite3’ (~> 1.3.6) among 93 total gem(s)
The other idea is perhaps something to do with specifying which ssl
certificates foreman should use?
Thank you Ondrej.
I took your advice in using the foreman-installer.
I had a lot of hiccoughs which I eventually, somehow, resolved by resetting
the database password and creating a smart proxy manually.
-peter