Version initial du 2020/09/10
This commit is contained in:
12
configure-host-oel6/templates/motd.j2
Executable file
12
configure-host-oel6/templates/motd.j2
Executable file
@@ -0,0 +1,12 @@
|
||||
---------------------------------------
|
||||
Welcome to {{ ansible_fqdn }}
|
||||
{{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_userspace_architecture }}
|
||||
|
||||
FQDN: {{ ansible_fqdn }}
|
||||
IP: {{ ansible_default_ipv4.address }}
|
||||
|
||||
#cpu's: {{ ansible_processor_vcpus }}
|
||||
mem: {{ ansible_memtotal_mb }} MB
|
||||
Kernel: {{ ansible_kernel }}
|
||||
|
||||
---------------------------------------
|
||||
50
configure-host-oel6/templates/oracleasm-configure.expect.j2
Executable file
50
configure-host-oel6/templates/oracleasm-configure.expect.j2
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
spawn service oracleasm configure
|
||||
{% if role_separation==True %}
|
||||
expect {
|
||||
"Default user to own the driver interface*:"
|
||||
{
|
||||
send "{{ grid_install_user }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Default group to own the driver interface*:"
|
||||
{
|
||||
send "{{ asmdba_group }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Start Oracle ASM library driver on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
"Scan for Oracle ASM disks on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
}
|
||||
{% else %}
|
||||
expect {
|
||||
"Default user to own the driver interface*:"
|
||||
{
|
||||
send "{{ oracle_user }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Default group to own the driver interface*:"
|
||||
{
|
||||
send "{{ dba_group }}\r"
|
||||
exp_continue
|
||||
}
|
||||
"Start Oracle ASM library driver on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
"Scan for Oracle ASM disks on boot*:"
|
||||
{
|
||||
send "y\r"
|
||||
exp_continue
|
||||
}
|
||||
}
|
||||
{% endif %}
|
||||
1
configure-host-oel6/templates/sudoers.j2
Executable file
1
configure-host-oel6/templates/sudoers.j2
Executable file
@@ -0,0 +1 @@
|
||||
{{ default_user }} ALL=(ALL) NOPASSWD: ALL
|
||||
Reference in New Issue
Block a user