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

Implement hyperglass-agent support #5

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Implement hyperglass-agent support #5

merged 1 commit into from
Sep 23, 2020

Conversation

bastelfreak
Copy link
Member

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak added the enhancement New feature or request label Sep 19, 2020
@bastelfreak bastelfreak self-assigned this Sep 19, 2020
@bastelfreak bastelfreak force-pushed the agent branch 17 times, most recently from 8417aec to d7b4fb1 Compare September 21, 2020 10:45
manifests/server.pp Outdated Show resolved Hide resolved
class hyperglass::server::install {
assert_private()
user { 'hyperglass':
ensure => 'present',
managehome => true,
purge_ssh_keys => true,
system => true,
home => '/opt/hyperglass',
home => '/opt/hyperglass/hyperglass-server',
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps you need a variable for this so you don't repeat this all the time?


# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_failures: true) # redis dependency needs two runs to start properly on selinux nodes
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if this is a sane approach. The module can install redis. I think to not influence the resource ordering it should come from the module. It added an if clause that checks if selinux is enabled and only does the second apply_manifest() in those environments. What do you think about that?

@bastelfreak bastelfreak force-pushed the agent branch 3 times, most recently from 49d269d to b9164e4 Compare September 22, 2020 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants