Skip to content

user_add job from os-conf/22.1.2

Github source: 8202fe3 or master branch

Properties

persistent_homes

If set to true, user home directories are created on persistent storage in /var/vcap/store/home.

Default
false

users

Array of user hashes. Each user should specify a name attribute. Each user should also provide crypted_password and/or public_key. Users will not be deleted if they are removed from this list after a successful update. All of the authorized keys for the users will be overwritten with the public key you specify.

Example
users:
- name: user1
  public_key: ssh-rsa AAAA ...
- crypted_password: $6$saltysalt$eF06vmEKaMhOr8jcnyfJJGuaU/Khq3DpH4M/7T.ziGNjhEEv3o9tgaX5VciMGAbgfE0CH9XrcpHi9kgmVv1Z2.
  name: user2
- name: rbash
  shell: /bin/rbash
- name: nosudo
  sudo: false

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/user_add/ directory (learn more).

  • bin/pre-start (from pre-start.sh.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.

This job relies on no runtime packages.