Skip to content

Commit

Permalink
Use $f_p::plugin::dynflow::external_core
Browse files Browse the repository at this point in the history
Since 5bde9c7 there is a variable that
explicitly sets the external core. Rather than copying the logic, this
reuses the variable.
  • Loading branch information
ekohl committed Mar 15, 2020
1 parent 935d45a commit 8ebc4a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifests/plugin/ansible.pp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
template_path => 'foreman_proxy/plugin/ansible.yml.erb',
}

if $::osfamily == 'RedHat' and $::operatingsystem != 'Fedora' {
if $foreman_proxy::plugin::dynflow::external_core {
Foreman_proxy::Settings_file['ansible'] ~> Service['smart_proxy_dynflow_core']
}
}
3 changes: 1 addition & 2 deletions manifests/plugin/dynflow.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
template_path => 'foreman_proxy/plugin/dynflow.yml.erb',
}

if $facts['osfamily'] == 'RedHat' {

if $external_core {
foreman_proxy::plugin { 'dynflow_core':
}
~> file { '/etc/smart_proxy_dynflow_core/settings.yml':
Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin/remote_execution/ssh.pp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}
}

if $::osfamily == 'RedHat' and $::operatingsystem != 'Fedora' {
if $foreman_proxy::plugin::dynflow::external_core {
if $ssh_kerberos_auth {
Package[$kerberos_pkg] ~> Service['smart_proxy_dynflow_core']
}
Expand Down

0 comments on commit 8ebc4a2

Please sign in to comment.