2 # Configure the Mech Driver for cisco neutron plugin
3 # More info available here:
4 # https://wiki.openstack.org/wiki/Neutron/ML2/MechCiscoNexus
7 # neutron::plugins::ml2::cisco::nexus_creds used by
8 # neutron::plugins::ml2::cisco::nexus
11 define neutron::plugins::ml2::cisco::nexus_creds(
19 file {'/var/lib/neutron/.ssh':
22 require => Package['neutron-server']
26 unless => "/bin/cat /var/lib/neutron/.ssh/known_hosts | /bin/grep ${username}",
27 command => "/usr/bin/ssh-keyscan -t rsa ${ip_address} >> /var/lib/neutron/.ssh/known_hosts",
29 require => [Package['neutron-server'], File['/var/lib/neutron/.ssh']]