Remove unused variable in certmonger/mysql manifest
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Fri, 9 Dec 2016 13:43:40 +0000 (15:43 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Fri, 9 Dec 2016 13:44:44 +0000 (15:44 +0200)
This was initially meant to select the CN/SubjectAltName based on the
network, but this is now instead done in t-h-t. So this ended up being
unused.

Depends-On: Id5dfb38852cf2420f4195a3c1cb98d5c47bbd45e
Change-Id: I58c3aee0506469125a7837a27271c2fe18e1dd60

manifests/certmonger/mysql.pp

index 62aff9a..9cb6b13 100644 (file)
 #   (Optional) The CA that certmonger will use to generate the certificates.
 #   Defaults to hiera('certmonger_ca', 'local').
 #
-# [*mysql_network*]
-#   (Optional) The network name where the mysql endpoint is listening on.
-#   This is set by t-h-t.
-#   Defaults to hiera('mysql_network', undef)
-#
 # [*principal*]
 #   (Optional) The haproxy service principal that is set for MySQL in kerberos.
 #   Defaults to undef
@@ -45,16 +40,11 @@ class tripleo::certmonger::mysql (
   $service_certificate,
   $service_key,
   $certmonger_ca = hiera('certmonger_ca', 'local'),
-  $mysql_network = hiera('mysql_network', undef),
   $principal     = undef,
 ) {
   include ::certmonger
   include ::mysql::params
 
-  if !$mysql_network {
-    fail('mysql_network is not set in the hieradata.')
-  }
-
   $postsave_cmd        = "systemctl reload ${::mysql::params::service_name}"
   certmonger_certificate { 'mysql' :
     ensure       => 'present',