-
Notifications
You must be signed in to change notification settings - Fork 271
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
Refactor running with a service to Foreman 1.22 #723
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -342,6 +342,8 @@ | |
timeout => 0, | ||
} | ||
|
||
$use_foreman_service = ! $passenger | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get why we need to set passenger to false explicitly in the current setup, but I do find not setting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note this is currently not a parameter but rather a variable inside the body so the user can't override this. In the reverse proxy scenario I'm expanding this logic. Because I couldn't properly figure out an API, I opted not to expose this to the user directly. |
||
|
||
include ::foreman::repo | ||
include ::foreman::install | ||
include ::foreman::config | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Service] | ||
User=<%= scope['foreman::user'] %> | ||
Environment=FOREMAN_ENV=<%= scope['foreman::rails_env'] %> | ||
Environment=FOREMAN_HOME=<%= scope['foreman::app_root'] %> | ||
<% if scope['foreman::foreman_service_bind'] -%> | ||
Environment=FOREMAN_BIND=<%= scope['foreman::foreman_service_bind'] %> | ||
<% end -%> | ||
Environment=FOREMAN_PORT=<%= scope['foreman::foreman_service_port'] %> |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it called
installer.conf
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it'd make it easy to track where it came from. It ends up as
/etc/systemd/system/foreman.service.d/installer.conf