-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud-config-ldap.yaml
44 lines (43 loc) · 1.25 KB
/
cloud-config-ldap.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#cloud-config
# https://github.com/eucalyptus/recipes/blob/master/cloud-init/cloud-init-openldap.config
apt_update: true
apt_upgrade: true
disable_root: true
cloud_config_modules:
- mounts
- ssh
- [ apt-update-upgrade, always ]
- updates-check
- runcmd
# DEBIAN_FRONTEND=noninteractive apt-get -y install sudo nfs-common figlet libnss-ldap libpam-ldap ldap-utils python3-pip python3-virtualenv make locate
packages:
- sudo
- nfs-common
- figlet
- libnss-ldap
- libpam-ldap
- ldap-utils
- python3-pip
- python3-virtualenv
- make
- locate
write_files:
- path: /root/test.sh
content: |
#!/bin/bash
set -x
set -e
whoami
runcmd:
- bash /root/test.sh
- updatedb
- figlet "LABIC IC/UFF" | sudo tee /etc/issue
- echo " Universidade Federal Fluminense" | sudo tee -a /etc/issue
- echo " Instituto de Computacao" | sudo tee -a /etc/issue
- echo " Laboratorio de Inteligencia Computacional" | sudo tee -a /etc/issue
- echo "" | sudo tee -a /etc/issue
- sudo sed -i 's/\\/\\\\/g' /etc/issue
- echo -n | sudo tee /etc/issue.net
mounts:
#- [ ephemeral0, /opt/openldap, auto, "defaults,noexec" ]
- [ 192.168.91.2:/home, /home , nfs , "soft,intr,async,cto,bg,auto,retry=2" ]