[katello-devel] reset-dbs script

Mike McCune mmccune at redhat.com
Tue May 22 21:23:52 UTC 2012


On 05/22/2012 02:21 PM, Eric Sammons wrote:
>
>
> ----- Original Message -----
>> On 22/05/12 14:06 -0700, Mike McCune wrote:
>>> On 05/22/2012 01:49 PM, Jordan OMara wrote:
>>>
>>>> 2. The script resets me to a pre-user state. I can login with a set
>>>> of
>>>> default data (admin/admin) but rerunning katello-configure should
>>>> fail. Any database-driven configuration from katello-configure run
>>>> is
>>>> gone
>>>
>>> this is the original intent.  to get your system as close to it was
>>> right after install and the first run of katello-configure.
>>>
>>
>> What about the users that provide config info in katello-configure?
>> They will lose that, and then have to reconfigure parts of it by hand
>>
>> --
>> Jordan O'Mara<jomara at redhat.com>
>> Red Hat Engineering, Raleigh
>>
>> _______________________________________________
>> katello-devel mailing list
>> katello-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/katello-devel
>>
>
> I would like to make the following suggestion; make reset a option to pass to katello-configure and either drop or make katello-reset-dbs a wrapper to katello-configure --reset
>
> I envision the following scenario:
>
> root #>  katello-configure --reset --deployment=sam --username=admin --password=something --org=MyOrg
>
> This would / should drop all databases and essentially reconfigure the deployment.  In fact; you could drop the deployment flag and have the script get the deployment type from the /etc/katello/katello-configure.conf file (deployment=), or allow --deployment to be a override option for what's in the conf file; i.e. deployment=headpin v. deployment=sam.
>
> Thoughts?

+1

Ideally it would work without requiring you to pass in the above flags 
too and just go to the default:

# katello-configure --reset

gets you ACME_Corporation with admin/admin

-- 
Mike McCune
mmccune AT redhat.com
Red Hat Engineering       | Portland, OR
Systems Management        | 650.254.4248




More information about the katello-devel mailing list