You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the config file does not exist then it is created in the current dir
if it exists we edit it (interactive mode only edits the options we have entered in interactive mode not others, it does not update predefined values with default ones)
pgmoneta configure -c <config_file_loc>
again we open interactive mode
but this time instead of current directory we use the file from the given location
if file not found we just go with the current directory file creation
pgmoneta configure -h
opens the help dialog i.e. manual
for all next options if -c is given we use that location file else current directory
pgmoneta configure --set <section> <key>:<value>
if file exists update the value
if not create file and set default values for other options
Activity
jesperpedersen commentedon Mar 12, 2025
Can use ideas from https://github.com/pixelb/crudini too
Mohab96 commentedon Mar 13, 2025
If I’m not mistaken, doesn’t the function
pgmoneta_init_configurationperform the same task?jesperpedersen commentedon Mar 13, 2025
This is a command line tool that build configuration files for the various components (core, walinfo, cli, ...)
Arnabdaz commentedon Mar 17, 2025
I would like to work on this issue
cc @jesperpedersen
jesperpedersen commentedon Mar 17, 2025
@Arnabdaz Go for it !
Arnabdaz commentedon Mar 17, 2025
I am thinking of implementing it as follows:
pgmoneta configurepgmoneta configure -c <config_file_loc>pgmoneta configure -hfor all next options if -c is given we use that location file else current directory
pgmoneta configure --set <section> <key>:<value>pgmoneta configure --set <section> <key1>:<value1> <key2>:<value2>pgmoneta configure --set <section1> <key1>:<value1> <key2>:<value2> --set <section2> <key3>:<value3>pgmoneta configure --showIf we visualize it simply as help dialog or a manual it would be like:
wdyt @jesperpedersen
jesperpedersen commentedon Mar 17, 2025
Yes, looks good - just do a separate binary
pgmoneta-configso we don'r confuse it with the run-time configuration settings.We will have multiple configuration files in the future - one for each binary
Arnabdaz commentedon Mar 17, 2025
Sounds good to me
In the interactive mode I will give only options to setup the basic stuff (initially) as in example pgmoneta.conf so that new users are not confused.
And for other options users can setup them using
--setjesperpedersen commentedon Mar 17, 2025
Yes, it should just be enough to help a user configure a running configuration against one server.
Then you can provide
setandgetoperations for the rest -- you don't have to use--Mohab96 commentedon Mar 17, 2025
Shouldn't this tool implemented after the configuration split?
jesperpedersen commentedon Mar 17, 2025
@Mohab96 No, we can start on it now
Sakshii-27 commentedon Apr 8, 2026
Hi @jesperpedersen, I noticed this issue is still open and hasn't had updates for some time. I'd like to work on this
jesperpedersen commentedon Apr 8, 2026
@Sakshii-27 Go for it !
[pgmoneta#516] Configuration generator
[pgmoneta#516] Configuration generator
[pgmoneta#516] Configuration generator
[#516] Configuration generator