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

Fixes #5845: Add portable init services handling in the Techniques #574

Conversation

Kegeruneku
Copy link

@Kegeruneku Kegeruneku force-pushed the bug_5451/dev/5451_add_systemd_support_to_techniques branch from 95a756e to 35c2b39 Compare November 27, 2014 17:34
@Kegeruneku Kegeruneku changed the title Fixes #5451: Add portable init services handling in the Techniques Fixes #5845: Add portable init services handling in the Techniques Nov 27, 2014
@@ -128,6 +121,14 @@ bundle agent check_openvpn_client_configuration

methods:

openvpn_bin_present.ovpn_client_autostart::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ovpn_client_autostart was not there when using commands, see below

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is defined by:

    # Autostart ?
      "ovpn_client_autostart" expression => strcmp("&OVPN_CLIENT_AUTOSTART&","true");

Actually, I do want to only bootstart ovpn if this class is here :)

@peckpeck
Copy link
Member

Cool, a lot of better code !

@Kegeruneku Kegeruneku force-pushed the bug_5451/dev/5451_add_systemd_support_to_techniques branch from 35c2b39 to d186dcf Compare November 27, 2014 18:42
@Kegeruneku
Copy link
Author

Updated !


"restart_apache" usebundle => service_restart("httpd");

!redhat.apache_bin_present.apache_unbootstarted::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The apache_unbootstarted class was defined by some code that you removed above. You can't use it, therefore. But you shuoldn't have too, the point of the method you're calling is to ensure it's set to start on boot, so you can just call it unconditionally!

@Kegeruneku Kegeruneku force-pushed the bug_5451/dev/5451_add_systemd_support_to_techniques branch from d186dcf to 41a8c36 Compare November 28, 2014 10:16
@Kegeruneku
Copy link
Author

Updated !

@Kegeruneku Kegeruneku force-pushed the bug_5451/dev/5451_add_systemd_support_to_techniques branch from 41a8c36 to cbc4e27 Compare November 28, 2014 10:46
peckpeck added a commit that referenced this pull request Nov 28, 2014
…_support_to_techniques

Fixes #5845: Add portable init services handling in the Techniques
@peckpeck peckpeck merged commit 9c1e617 into Normation:branches/rudder/3.0 Nov 28, 2014
amousset pushed a commit to amousset/rudder-techniques that referenced this pull request Dec 8, 2015
…_not_use_non_posix_shell_bits

Fixes #6032: Prevent rudder-inventory-ldap post installation script to o...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants