Skip to content

Commit

Permalink
update syntax for facts
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFedotov committed Sep 1, 2018
1 parent 27edd45 commit 1b7ffa3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@

Hash $override_config_settings = {},

String $node_name = "${::fqdn}:${admin_listen_port}",
String $node_name = "${facts['fqdn']}:${admin_listen_port}",
) inherits ::proxysql::params {

# lint:ignore:80chars
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$admin_listen_ip = '127.0.0.1'
$admin_listen_port = 6032

case $::operatingsystem {
case $facts['operatingsystem'] {
'Debian': {
$admin_listen_socket = '/tmp/proxysql_admin.sock'
$package_provider = 'dpkg'
Expand Down
2 changes: 1 addition & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
class proxysql::repo inherits proxysql {
if $proxysql::manage_repo == true {
case $::operatingsystem {
case $facts['operatingsystem'] {
'Debian', 'Ubuntu': {
create_resources('::apt::source', $proxysql::repo)
}
Expand Down

0 comments on commit 1b7ffa3

Please sign in to comment.