Project

General

Profile

Download (839 Bytes) Statistics
| Branch: | Tag: | Revision:
<%#
kind: user_data
name: UserData default
oses:
- CentOS 4
- CentOS 5
- CentOS 6
- CentOS 7
- Fedora 16
- Fedora 17
- Fedora 18
- Fedora 19
- Fedora 20
- Fedora 21
- Fedora 22
- Debian
- Ubuntu
-%>
#cloud-config
hostname: <%= @host.shortname %>
fqdn: <%= @host %>
manage_etc_hosts: true
ssh_pwauth: <%= @host.params['ssh_pwauth'] || true %>
<% if @host.params['ssh_authorized_keys'] -%>
ssh_authorized_keys:
<% @host.params['ssh_authorized_keys'].split("\n").each do |ssh_key| -%>
- <%= ssh_key %>
<% end -%>
<% end -%>

groups:
- admin

users:
- default
- name: admin
primary-group: admin
groups: users
shell: /bin/bash
sudo: ['ALL=(ALL) ALL']
lock-passwd: false
passwd: <%= @host.root_pass %>

<%# Contact Foreman to confirm instance is built -%>
phone_home:
url: <%= foreman_url('built') %>
post: []
tries: 10
    (1-1/1)