zimi

ssh-login/manifests/configure.pp

Nov 16th, 2015
303
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ssh-login::configure {
  2.  augeas { "configure_sshd_conf":
  3.    context => "/files/etc/ssh/sshd_config",
  4.    changes => [ "set PasswordAuthentication yes",],
  5.    require => Class["ssh-login::install"],
  6.    notify => Class["ssh-login::service"],
  7.  }
  8.  
  9.  ssh_authorized_key { "ubuntu@masterp2" :
  10.     key => "AAAAB3NzaC1yc2EAAAADAQABAAABAQCY5y8kIFMPOl1Tx9BDUcOZmMvuTJDbFs87eOvmfZuR5fetIyejR+UvN04MA2gVpTrVdu5ucnfyyjFWNkp9oJMifS2hIgUNR57omweAzYqW+aDqXHYxRvvlfaf9vfhCgYw2PeZxw2K5VGLzOtHssSsZKwkFBLU6Aq8kRUz7lG+Y/hWWvgp2PeYkOt5himH5EvzK7zkffuayku+60XSqDYe5tL+j5eYdPUAmnDEm1bXOvpWDqyJua90I/QgCES8yBqr6jSbXab3jMN4JR0Y0QRe3dtfiMUgcmesBeZ8ATKhj5mLJRkcWmDZ6qSpM0rg/dq+TvnBwru6VjlpObZ8hY5Dl",
  11.     user => root,
  12.     ensure => present,
  13.     type => rsa,
  14.  }
  15. }
RAW Paste Data