Add server and client metadata for Rundeck
Change-Id: Iaba8ed9b932cf587db2d27853f37d352f03a98e1
diff --git a/rundeck/client/init.yml b/rundeck/client/init.yml
new file mode 100644
index 0000000..31b7ee9
--- /dev/null
+++ b/rundeck/client/init.yml
@@ -0,0 +1,19 @@
+classes:
+ - service.rundeck.client
+parameters:
+ _param:
+ rundeck_client_host: ${_param:haproxy_rundeck_bind_host}
+ rundeck_client_port: ${_param:haproxy_rundeck_bind_port}
+ rundeck_client_https: ${_param:haproxy_rundeck_ssl:enabled}
+ rundeck_client_username: ${_param:rundeck_admin_username}
+ rundeck_client_password: ${_param:rundeck_admin_password}
+ rundeck:
+ client:
+ server:
+ endpoint:
+ host: ${_param:rundeck_client_host}
+ port: ${_param:rundeck_client_port}
+ https: ${_param:rundeck_client_https}
+ credentials:
+ username: ${_param:rundeck_client_username}
+ password: ${_param:rundeck_client_password}
diff --git a/rundeck/client/project/cicd.yml b/rundeck/client/project/cicd.yml
new file mode 100644
index 0000000..e33fcae
--- /dev/null
+++ b/rundeck/client/project/cicd.yml
@@ -0,0 +1,22 @@
+parameters:
+ rundeck:
+ client:
+ project:
+ cicd:
+ description: "CI/CD Runbooks"
+ node:
+ node01:
+ nodename: ${_param:cluster_node01_name}.${_param:cluster_domain}
+ hostname: ${_param:cluster_node01_address}
+ username: ${_param:rundeck_runbook_user}
+ tags: [cicd, docker]
+ node02:
+ nodename: ${_param:cluster_node02_name}.${_param:cluster_domain}
+ hostname: ${_param:cluster_node02_address}
+ username: ${_param:rundeck_runbook_user}
+ tags: [cicd, docker]
+ node03:
+ nodename: ${_param:cluster_node03_name}.${_param:cluster_domain}
+ hostname: ${_param:cluster_node03_address}
+ username: ${_param:rundeck_runbook_user}
+ tags: [cicd, docker]
diff --git a/rundeck/client/runbook.yml b/rundeck/client/runbook.yml
new file mode 100644
index 0000000..cb94025
--- /dev/null
+++ b/rundeck/client/runbook.yml
@@ -0,0 +1,22 @@
+classes:
+ - service.rundeck.common
+parameters:
+ linux:
+ system:
+ user:
+ runbook:
+ enabled: true
+ name: ${_param:rundeck_runbook_user}
+ system: true
+ sudo: true
+ full_name: Rundeck Remote
+ home: /var/lib/runbook
+ openssh:
+ server:
+ enabled: true
+ user:
+ runbook:
+ enabled: true
+ public_keys:
+ - key: ${_param:rundeck_runbook_public_key}
+ user: ${linux:system:user:runbook}