Project

General

Profile

Actions

Bug #1698

closed

"using_storconfigs" varible not working as intended

Added by Lard Farnwell almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

My foreman is on the same host as my puppetmaster and I want to use storeconfigs. There are two problems:

1) Foreman doesn't detect that I am using storeconfigs

2) The "using_storeconfigs" setting in settings.yaml doesn't fix this

My settings.yaml looks like:
:unattended: false
:puppetconfdir: /etc/puppet/puppet.conf
:login: false
:require_ssl: false
:using_storeconfigs: true

The puppetconfdir is correct here.

I've done a little bit of debugging. I think the problem is in "default_settings/loader.rb". The line being:

set('using_storeconfigs', "Foreman is sharing its database with Puppet Store configs",(!Puppet.settings.instance_variable_get(:@values)[:master][:dbadapter].empty? rescue false)),

If I replace the last expression simply with "true" everything works. I tried to dump the contents of @values via:

Puppet.settings.instance_variable_get(:@values).inspect

and got
{:user=>{}, :cli=>{}, :memory=>{:bindaddress=>"0.0.0.0"}, :main=>{}, :mutable_defaults=>{}, :production=>{}}

I am on a recent commit in the dev branch.

Thanks.

Actions #1

Updated by Ohad Levy almost 12 years ago

  • Status changed from New to Resolved

changing the value in settings.yaml is wrong, you should simply update the settings via the UI, more ==> Settings

Actions

Also available in: Atom PDF