Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add hostgroups for all configured roles instead of using the run list. #7

Merged
merged 2 commits into from

2 participants

@Mobbit

Using the run list leaves out role dependencies, like our base role. As we
want to configure specific checks based on them, we have to include them
in the list of hostgroups.

Mobbit added some commits
@Mobbit Mobbit Add hostgroups for all configured roles instead of using the run list.
Using the run list leaves out role dependencies, like our base role. As we
want to configure specific checks based on them, we have to include them
in the list of hostgroups.
497e2ca
@Mobbit Mobbit fixed available roles check ed0a358
@mdxp mdxp merged commit e731fbd into mdxp:master
@mdxp
Owner

Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 3, 2012
  1. @Mobbit

    Add hostgroups for all configured roles instead of using the run list.

    Mobbit authored
    Using the run list leaves out role dependencies, like our base role. As we
    want to configure specific checks based on them, we have to include them
    in the list of hostgroups.
Commits on Dec 5, 2012
  1. @Mobbit

    fixed available roles check

    Mobbit authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/default/hosts.cfg.erb
View
4 templates/default/hosts.cfg.erb
@@ -6,10 +6,10 @@ define host {
use server
address <%= n['ipaddress'] %>
host_name <%= n['hostname'] %>
-<% if n.run_list.roles.nil? || n.run_list.roles.length == 0 -%>
+<% if n.roles.nil? || n.roles.length == 0 -%>
hostgroups all
<% else -%>
- hostgroups <%= n.run_list.roles.to_a.join(",") %>
+ hostgroups <%= n.roles.to_a.join(",") %>
<% end -%>
}
Something went wrong with that request. Please try again.