Sha256: 9649f84cffe2eeaf54f92e52413b549ab2a0aae3f2047ae6b4ecc1eac56da234

Contents?: true

Size: 761 Bytes

Versions: 36

Compression:

Stored size: 761 Bytes

Contents

DEPLOYER_NAME=<%= @attributes.deployer_name %>
DEPLOYER_PWD=<%= @attributes.deployer_password %>
DEPLOYER_PATH=/home/$DEPLOYER_NAME

if sunzi.to_be_done "create deployer"; then
  adduser $DEPLOYER_NAME --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
  echo "$DEPLOYER_NAME:$DEPLOYER_PWD" | sudo chpasswd
  adduser $DEPLOYER_NAME sudo

  mkdir $DEPLOYER_PATH/.ssh
  chmod 700 $DEPLOYER_PATH/.ssh

  mv files/authorized_keys $DEPLOYER_PATH/.ssh/authorized_keys
  chmod 644 $DEPLOYER_PATH/.ssh/authorized_keys

  chown -R $DEPLOYER_NAME:$DEPLOYER_NAME $DEPLOYER_PATH

	mv files/sudoers /etc/sudoers.d/$DEPLOYER_NAME
	chown root:root /etc/sudoers.d/$DEPLOYER_NAME
	chmod 0440 /etc/sudoers.d/$DEPLOYER_NAME

  sunzi.done "create deployer"
fi

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
o2webappizer-0.2.6 templates/config/sunzi/recipes/user.sh
o2webappizer-0.2.5 templates/config/sunzi/recipes/user.sh
o2webappizer-0.2.4 templates/config/sunzi/recipes/user.sh
o2webappizer-0.2.3 templates/config/sunzi/recipes/user.sh
o2webappizer-0.2.2 templates/config/sunzi/recipes/user.sh
o2webappizer-0.2.1 templates/config/sunzi/recipes/user.sh
o2webappizer-0.2.0 templates/config/sunzi/recipes/user.sh
sunzi-rails-0.2.19 lib/templates/create/recipes/user.sh
o2webappizer-0.1.15 templates/config/sunzi/recipes/user.sh
sunzi-rails-0.2.18 lib/templates/create/recipes/user.sh
o2webappizer-0.1.14 templates/config/sunzi/recipes/user.sh
sunzi-rails-0.2.17 lib/templates/create/recipes/user.sh
sunzi-rails-0.2.16 lib/templates/create/recipes/user.sh
sunzi-rails-0.2.15 lib/templates/create/recipes/user.sh
o2webappizer-0.1.13 templates/config/sunzi/recipes/user.sh
o2webappizer-0.1.12 templates/config/sunzi/recipes/user.sh
o2webappizer-0.1.11 templates/config/sunzi/recipes/user.sh
o2webappizer-0.1.10 templates/config/sunzi/recipes/user.sh
o2webappizer-0.1.9 templates/config/sunzi/recipes/user.sh
o2webappizer-0.1.8 templates/config/sunzi/recipes/user.sh