X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fneutron%2Fmanifests%2Fplugins%2Fml2%2Fcisco%2Fnexus_creds.pp;fp=3rdparty%2Fmodules%2Fneutron%2Fmanifests%2Fplugins%2Fml2%2Fcisco%2Fnexus_creds.pp;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=16c262cb0ac8018bcba871fb4dab99e7567dd5c5;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/neutron/manifests/plugins/ml2/cisco/nexus_creds.pp b/3rdparty/modules/neutron/manifests/plugins/ml2/cisco/nexus_creds.pp deleted file mode 100644 index 16c262cb0..000000000 --- a/3rdparty/modules/neutron/manifests/plugins/ml2/cisco/nexus_creds.pp +++ /dev/null @@ -1,31 +0,0 @@ -# -# Configure the Mech Driver for cisco neutron plugin -# More info available here: -# https://wiki.openstack.org/wiki/Neutron/ML2/MechCiscoNexus -# -# -# neutron::plugins::ml2::cisco::nexus_creds used by -# neutron::plugins::ml2::cisco::nexus -# - -define neutron::plugins::ml2::cisco::nexus_creds( - $username, - $password, - $servers, - $ip_address, - $ssh_port -) { - - file {'/var/lib/neutron/.ssh': - ensure => directory, - owner => 'neutron', - require => Package['neutron-server'] - } - - exec {'nexus_creds': - unless => "/bin/cat /var/lib/neutron/.ssh/known_hosts | /bin/grep ${username}", - command => "/usr/bin/ssh-keyscan -t rsa ${ip_address} >> /var/lib/neutron/.ssh/known_hosts", - user => 'neutron', - require => [Package['neutron-server'], File['/var/lib/neutron/.ssh']] - } -}