How can I change the foreman Administer/Settings from command line

Hello.

May I ask how to change the following Foreman setting using command line?

Administer -> Settings -> safemode_render -> false

I'm able to do it easily through the web interface, but is there a way how
to do it using command line?

Thank you

PetrR

You can add these to /etc/foreman/settings.yaml and that'll take
precedence over the web UI, e.g.

:safemode_render: false

Or you can use a little script at
/usr/share/foreman/script/foreman-config which does pretty much what
Lukas recommended.

··· On 28/04/14 09:25, Petr Ruzicka wrote: > Hello. > > May I ask how to change the following Foreman setting using command line? > > Administer -> Settings -> safemode_render -> false > > I'm able to do it easily through the web interface, but is there a way > how to do it using command line?


Dominic Cleal
Red Hat Engineering

> I'm able to do it easily through the web interface, but is there a way how
> to do it using command line?

Hey,

foreman-rake console

#> Setting["safemode_render"] = false
#> Ctrl+D

You can combine this using shell when you need to do this in a test.

LZ

··· -- Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Thank you guys.

I used:

echo 'Setting["safemode_render"] = false' | foreman-rake console --silent

which is the Lukas recommended way… but it's good to know both ways.

Thanks

PetrR

··· On Monday, 28 April 2014 10:59:51 UTC+2, Dominic Cleal wrote: > > On 28/04/14 09:25, Petr Ruzicka wrote: > > Hello. > > > > May I ask how to change the following Foreman setting using command > line? > > > > Administer -> Settings -> safemode_render -> false > > > > I'm able to do it easily through the web interface, but is there a way > > how to do it using command line? > > You can add these to /etc/foreman/settings.yaml and that'll take > precedence over the web UI, e.g. > > :safemode_render: false > > Or you can use a little script at > /usr/share/foreman/script/foreman-config which does pretty much what > Lukas recommended. > > -- > Dominic Cleal > Red Hat Engineering >

Is this on the game backlog?

– bk

··· Sent with thumbs

On Apr 28, 2014, at 5:04 AM, Petr Ruzicka petr.ruzicka@gmail.com wrote:

Thank you guys.

I used:

echo ‘Setting[“safemode_render”] = false’ | foreman-rake console --silent

which is the Lukas recommended way… but it’s good to know both ways.

Thanks

PetrR

On Monday, 28 April 2014 10:59:51 UTC+2, Dominic Cleal wrote:
On 28/04/14 09:25, Petr Ruzicka wrote:

Hello.

May I ask how to change the following Foreman setting using command line?

Administer -> Settings -> safemode_render -> false

I’m able to do it easily through the web interface, but is there a way
how to do it using command line?

You can add these to /etc/foreman/settings.yaml and that’ll take
precedence over the web UI, e.g.

:safemode_render: false

Or you can use a little script at
/usr/share/foreman/script/foreman-config which does pretty much what
Lukas recommended.


Dominic Cleal
Red Hat Engineering


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/d/optout.

Hammer backlog :slight_smile:

– bk

··· Sent with thumbs

On Apr 28, 2014, at 5:04 AM, Petr Ruzicka petr.ruzicka@gmail.com wrote:

Thank you guys.

I used:

echo ‘Setting[“safemode_render”] = false’ | foreman-rake console --silent

which is the Lukas recommended way… but it’s good to know both ways.

Thanks

PetrR

On Monday, 28 April 2014 10:59:51 UTC+2, Dominic Cleal wrote:
On 28/04/14 09:25, Petr Ruzicka wrote:

Hello.

May I ask how to change the following Foreman setting using command line?

Administer -> Settings -> safemode_render -> false

I’m able to do it easily through the web interface, but is there a way
how to do it using command line?

You can add these to /etc/foreman/settings.yaml and that’ll take
precedence over the web UI, e.g.

:safemode_render: false

Or you can use a little script at
/usr/share/foreman/script/foreman-config which does pretty much what
Lukas recommended.


Dominic Cleal
Red Hat Engineering


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/d/optout.

http://projects.theforeman.org/issues/2918

··· -- Dominic Cleal Red Hat Engineering

On 28/04/14 12:28, Bryan Kearney wrote:

Hammer backlog :slight_smile:

– bk
Sent with thumbs

On Apr 28, 2014, at 5:04 AM, Petr Ruzicka <petr.ruzicka@gmail.com > mailto:petr.ruzicka@gmail.com> wrote:

Thank you guys.

I used:

echo ‘Setting[“safemode_render”] = false’ | foreman-rake console --silent

which is the Lukas recommended way… but it’s good to know both ways.

Thanks

PetrR

On Monday, 28 April 2014 10:59:51 UTC+2, Dominic Cleal wrote:

On 28/04/14 09:25, Petr Ruzicka wrote:
> Hello.
>
> May I ask how to change the following Foreman setting using
command line?
>
> Administer -> Settings -> safemode_render -> false
>
> I'm able to do it easily through the web interface, but is there
a way
> how to do it using command line?

You can add these to /etc/foreman/settings.yaml and that'll take
precedence over the web UI, e.g.

:safemode_render: false

Or you can use a little script at
/usr/share/foreman/script/foreman-config which does pretty much what
Lukas recommended.

-- 
Dominic Cleal
Red Hat Engineering


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


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


Dominic Cleal
Red Hat Engineering