Skip to content

Instantly share code, notes, and snippets.

@mgagne
Created July 30, 2013 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgagne/6118033 to your computer and use it in GitHub Desktop.
Save mgagne/6118033 to your computer and use it in GitHub Desktop.
if $allowed_hosts {
# NOTE(mgagne): Check to avoid duplicate resource declarations
if (is_string($allowed_hosts) and ($allowed_hosts != $host)) or
(is_array($allowed_hosts) and !member($allowed_hosts,$host)) {
glance::db::mysql::host_access { $allowed_hosts:
user => $user,
password => $password,
database => $dbname,
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment