Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for PostgreSQL in jail. #42

Open
ndruba opened this issue Dec 24, 2019 · 0 comments
Open

Changes for PostgreSQL in jail. #42

ndruba opened this issue Dec 24, 2019 · 0 comments

Comments

@ndruba
Copy link

ndruba commented Dec 24, 2019

Hi!
I have PostgreSQL, installed in jail. But zfs is at host system. Because of this, cant working command from lib/zfstools/snapshot.rb
I need one parameter in two places at line 74:
cmd = %Q[(psql <<HERE!!!>> -c "#{sql_pre_query}" postgres ; #{zfs_cmd} ) ; psql <<AND_HERE!!!>> -c "#{sql_post_query}" postgres]
to put there something like
-U postgres -h jail.host.local
But I not understand, how most correctly do this. May be someone can tell me some about?

And after some thought ...
I think, that good idea create parameter in zfs properties, whose value would be the name of the variable containing the necessary launch flags... Because now I have one jail with postgres, but very soon I will have second.
And in this case also good idea to put variable with launch flags in file at /usr/local/etc.

@ndruba ndruba changed the title Changes for Postgre in jail. Changes for PostgreSQL in jail. Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant