Commit 4da3812a authored by Scotty Logan's avatar Scotty Logan
Browse files

removed admin user

parent 59dbc57b
Loading
Loading
Loading
Loading

manifests/admin_user.pp

deleted100644 → 0
+0 −50
Original line number Diff line number Diff line
# == Class: base::admin_user
#
# Optional admin user for systems
#
# === Examples
#
#  include base::admin_user
#
# === Authors
#
# Xueshan Feng <sfeng@stanford.edu>
# Scotty Logan <swl@stanford.edu>
#
# === Copyright
#
# Copyright (c) 2016 The Board of Trustees of the Leland Stanford Junior
# University
#
class base::admin_user {

  # add an admin user for drush, wpcli, etc.
  user { 'admin':
    ensure          => present,
    name            => 'admin',
    home            => '/home/admin',
    managehome      => true,
    comment         => 'Admin User',
    shell           => '/bin/bash',
    purge_ssh_keys  => true,
    require         => Package['openssh-server'],
  }

  file { 'ssh-dir':
    ensure  => directory,
    path    => '/home/admin/.ssh',
    owner   => 'admin',
    mode    => '0700',
    require => User['admin'],
  }

  file { 's3cfg':
    ensure  => file,
    path    => '/home/admin/.s3cfg',
    owner   => 'admin',
    mode    => '0644',
    require => User['admin'],
    source  => "puppet:///modules/${module_name}/s3cfg",
  }

}