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

[RFC] Add a site.conf section #95

Open
cpb- opened this issue Jul 6, 2021 · 1 comment
Open

[RFC] Add a site.conf section #95

cpb- opened this issue Jul 6, 2021 · 1 comment

Comments

@cpb-
Copy link
Owner

cpb- commented Jul 6, 2021

It seems interesting to support the creation of conf/site.conf from a menu.

In the case when the site.conf is present in a menu and we don't want to use it, a --ignore-site command line option for cooker will be needed.

@cpb-
Copy link
Owner Author

cpb- commented Jul 8, 2021

There are other ways to support the site.confequivalent :

  • add a command-line option (--site-specific <file>) that copy the given file into conf/site.conf before the build(s);
  • add a site-specific section containing one or more subsections to include into the local.conf file only if specific conditions are validate. The subsection contains a string that is tested (as a shell-command) to know if the given subsection has to be included. Simplest condition strings could be true or false. More interesting conditions would be ping <an-internal-node> to know if proxy rules are needed.

@cpb- cpb- changed the title Add a site.conf section [RFC] Add a site.conf section Jul 8, 2021
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