Commit d7428ebe authored by CRAIG BENNER's avatar CRAIG BENNER

adjusting cactus_service to correct URL, adding 2 new base boxes how to build scripts

parent cdd506f5
Vagrant.require_version ">= 1.9.1"
required_plugins = %w( winrm winrm-fs)
required_plugins.each do |plugin|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "shell", inline: "echo Requirements: Ansible:WinRM openSSL"
config.vm.define "base-oneforestAD"
config.vm.communicator = :winrm
config.vm.boot_timeout = 1800
config.vm.box = "edu.psu/base-winsvr2012"
config.vm.box_url = "https://nexus.ci.psu.edu/repository/vagrant-boxes/base-winsvr2012.json"
config.winrm.username = "vagrant"
config.winrm.password = "P@ssw0rd"
config.winrm.port = 5985
config.winrm.timeout = 1800
config.winrm.retry_limit = 3
config.vm.network "forwarded_port", guest: 5985, host: 5985
config.vm.network "forwarded_port", guest: 5986, host: 5986
config.vm.network "private_network", ip: "192.168.33.11", virtualbox__intnet: "localDev"
config.ssh.insert_key = false
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
# Enable provisioning with Ansible
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook.yml"
ansible.groups = {
"vagrant" => ["base-oneforestAD"],
}
end
end
[defaults]
roles_path = ../../roles
-----BEGIN CERTIFICATE-----
MIIF8TCCA9mgAwIBAgIJAMOGpuaZkxrLMA0GCSqGSIb3DQEBCwUAMIGOMQswCQYD
VQQGEwJVUzEVMBMGA1UECAwMUGVubnN5bHZhbmlhMRgwFgYDVQQHDA9Vbml2ZXJz
aXR5IFBhcmsxJjAkBgNVBAoMHVBlbm5zeWx2YW5pYSBTdGF0ZSBVbml2ZXJzaXR5
MQswCQYDVQQLDAJJVDEZMBcGA1UEAwwQQ0EuZGV2ZWxvcC5sb2N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uX9/p0rCiKNOfl9C6fY1yREPcOwVk2tbcmrxx/
HGI1vmFWhVXwCU3PwJZgCyMvHjsf1/SKXzJ/q6r2haX9cBBVgJP6f4GhYKWf2p3l
rH58Al9kbDGV4bDetquGmrBqFLtDjElHalKaem9h5Yv6caIbC/c5e88PAXddMeRo
O2s9F0XIQVTwQSRlBOvOsdCqszck1iOkmBf2oHt1xqoTZi4YI1jzRz9fo/z+Dd/d
iUxKFr5MPZEjZqruX9B35KEUdtRp3dDYapjyvwm5wr49N1/4cLgCuqZv79iKatD8
eRFzmS+cyOfbw1wcgPgvj5td2BhdPy1g917LUVtkZgJ9UkiKI9pXl3N6x1Bh0eAJ
zFB6IKR6WKwMfNL7Efo+ZiICB2rfXzJ4+Ss+E6COxCn3XSJUZD0/GoiQhS7sX3Z4
7fq/hkukYRzLfAkUmte468fX6J6YAncDFBu7PNUBAqE2IZmFuc1X5t2L+bmSa5rX
+HfOw3T64I6feEg2D/XOzRm0THUzwVD4Wnuq8MBGFHL1ES69KKkM/C15eGmSD2TO
as0IwV4z4LjWwyC9/OvFjLNwd7J5zZxnoI9cU6SKqPPvwxN0DMFMsGceT0hEzZ18
+6zK2sAIx9tAGiWv4HAIGMqpk1u9+Bk78wdA68M/AGGmCpG1TW9t5UOsoeoXuJAv
jFe6/gwCd2CL0OeVfeem/KU4CXjXpjTZKrVl7dyBHTaCeZ4Y/F2TRxN6HqcCLcsY
TYoeStPLlVb5ayCvUrjozv9uj1mZ7X4ALPgDaLx6O9DKaJp/8Z+xTaGIIhWnfNMD
-----END RSA PRIVATE KEY-----
;----------------- request.inf -----------------
[Version]
Signature=$Windows NT$
[NewRequest]
Subject = "CN=develop-dc-01.develop.local" ; replace with the FQDN of the DC
KeySpec = 1
KeyLength = 2048
; Can be 1024, 2048, 4096, 8192, or 16384.
; Larger key sizes are more secure, but have
; a greater impact on performance.
Exportable = TRUE
MachineKeySet = TRUE
SMIME = False
PrivateKeyArchive = FALSE
UserProtected = FALSE
UseExistingKeySet = FALSE
ProviderName = "Microsoft RSA SChannel Cryptographic Provider"
ProviderType = 12
RequestType = PKCS10
KeyUsage = 0xa0
[EnhancedKeyUsageExtension]
OID=1.3.6.1.5.5.7.3.1
;[Extensions]
;OID=1.3.6.1.5.5.7.3.1
;-----------------------------------------------
-----BEGIN CERTIFICATE-----
MIIEKTCCAhECAQEwDQYJKoZIhvcNAQELBQAwgY4xCzAJBgNVBAYTAlVTMRUwEwYD
VQQIDAxQZW5uc3lsdmFuaWExGDAWBgNVBAcMD1VuaXZlcnNpdHkgUGFyazEmMCQG
A1UECgwdUGVubnN5bHZhbmlhIFN0YXRlIFVuaXZlcnNpdHkxCzAJBgNVBAsMAklU
MRkwFwYDVQQDDBBDQS5kZXZlbG9wLmxvY2FsMB4XDTE3MTEwMzE3MzM0MloXDTI3
MTEwMTE3MzM0MlowJjEkMCIGA1UEAwwbZGV2ZWxvcC1kYy0wMS5kZXZlbG9wLmxv
Y2FsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxnehv25I6dRS5l5Z
4HMCSYkFjTE3POsL+oV47CJISyOvyMNtN0C3K+NyExGA+Ii3L1to3dHoqluv9u6s
Q2iysmO0OsYrFkHj5rWVvhm+wKzhm36ncBcrsyz9C7LqCzkKHFiXqkb6L/dn/0vt
Hg8R6DEJ1CTrxziW9S7/L9kp7rvedt8vVlfH5VS7vifyreETLnrw4nP3JSMQaL/T
Gx+yE+OmqZdspHaCOjveHfm5YwgM+Cuy//0rjPkwBXvMDSRVZGU2IcM5OWAcbttT
nVPlHIUrGA6EV5WCFp08fUo6ow99oIqtkI2Oq7yO+FwuVt8+f5g20iDLoTF9aJ4Q
d+9YZwIDAQABMA0GCSqGSIb3DQEBCwUAA4ICAQA8QgG74oaBX6u4hayhgGRL5GnC
XdYrBeFPdqcloiVfDnk2OBvfortQkrXpL9YYZ5gacPtogPoq0VM8y7s2f3ypbNZe
j9WyGVed5rYDnA9skn8+VUL4qLcWkS3zlCUz3637KO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
d+9YZwIDAQABoIIBLDAaBgorBgEEAYI3DQIDMQwWCjYuMi45MjAwLjIwRQYJKwYB
BAGCNxUUMTgwNgIBCQwNZGV2ZWxvcC1kYy0wMQwVREVWRUxPUC1EQy0wMVx2YWdy
YW50DAtjZXJ0cmVxLmV4ZTBTBgkqhkiG9w0BCQ4xRjBEMA4GA1UdDwEB/wQEAwIF
oDATBgNVHSUEDDAKBggrBgEFBQcDATAdBgNVHQ4EFgQUlQvD+SwPT2LcZkkzpIe+
oi67QWQwcgYKKwYBBAGCNw0CAjFkMGICAQEeWgBNAGkAYwByAG8AcwBvAGYAdAAg
AFIAUwBBACAAUwBDAGgAYQBuAG4AZQBsACAAQwByAHkAcAB0AG8AZwByAGEAcABo
AGkAYwAgAFAAcgBvAHYAaQBkAGUAcgMBADANBgkqhkiG9w0BAQUFAAOCAQEAOzKs
ZTg/JbI0qa+FfyVj1IBjEJiAPJ9amwqP4LSU4NEW7Drb4eL562Pm0LgYPGNtditY
zK2XHZ1459S+c3qYnNDaGFpHTidLOcbeJ/0pPk9yUYt/qarnT4swEb2FxVGen5lw
jniRRcNeYpxsuUCUWlWk4g1mCkSwqBaVjdxnoC6Z88SobFs2ti/t/Nv2Ts9Hk5N2
IMoYOc2VJ74aX7IEY694QLeuWM0jNohiz6iLWl2EI65CF6j5uKZqsDxL3P5Nr3Pv
9HIJIepFZkyYqdXbikjiwDCZlrHj8X3P5Y5ANMETw1JG+WkTD7dsnG/Ourd4BFGy
0a5/Vz9h8489KfkbOw==
-----END NEW CERTIFICATE REQUEST-----
---
# file: security-service-vagrant\playbook_ad.yml
- hosts: vagrant
roles:
- { role: ActiveDirectory }
- { role: ONEForest }
vars:
ad_domain_name: develop.local
ad_safe_mode_password: FtPX38qhuaHTaTS4CkZ6Fpsgg5wL883N
local_dev_username: secSvc
local_dev_password: ONEforestIsAw3some!
Vagrant.require_version ">= 1.9.1"
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "shell", inline: "echo This Will Provision machine --CentOS--"
config.vm.define "base-wildfly-kerb"
config.vm.box = "edu.psu/base-wildfly10"
config.vm.box_url = "https://nexus.ci.psu.edu/repository/vagrant-boxes/base-wildfly10.json"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.network "forwarded_port", guest: 5432, host: 5432
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 8081, host: 8081
config.vm.network "forwarded_port", guest: 8787, host: 8787
config.vm.network "forwarded_port", guest: 9990, host: 9990
config.vm.network "forwarded_port", guest: 9999, host: 9999
config.vm.network "forwarded_port", guest: 9080, host: 9080
config.vm.network "private_network", ip: "192.168.33.10", virtualbox__intnet: "localDev"
config.ssh.insert_key = false
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook.yml"
ansible.groups = {
"vagrant" => ["base-wildfly-kerb"],
}
end
end
[defaults]
roles_path = ../../roles
-----BEGIN CERTIFICATE-----
MIIF8TCCA9mgAwIBAgIJAMOGpuaZkxrLMA0GCSqGSIb3DQEBCwUAMIGOMQswCQYD
VQQGEwJVUzEVMBMGA1UECAwMUGVubnN5bHZhbmlhMRgwFgYDVQQHDA9Vbml2ZXJz
aXR5IFBhcmsxJjAkBgNVBAoMHVBlbm5zeWx2YW5pYSBTdGF0ZSBVbml2ZXJzaXR5
MQswCQYDVQQLDAJJVDEZMBcGA1UEAwwQQ0EuZGV2ZWxvcC5sb2NhbDAeFw0xNzEx
MDMxNzMzMzFaFw0yNzExMDExNzMzMzFaMIGOMQswCQYDVQQGEwJVUzEVMBMGA1UE
CAwMUGVubnN5bHZhbmlhMRgwFgYDVQQHDA9Vbml2ZXJzaXR5IFBhcmsxJjAkBgNV
BAoMHVB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XRKhtKSCopuvr2mfuIFn1ogftrtaW9t
5nUH5GMhkyyjU5GgB6UNz4S7ixjFl8g5RWOdrjfZJ6OfQmlRIhI0Od2MxufVa1ND
EgEROqBZONa2RJwCe8TQ1w6E5kQgJTAMll4qWV5Mdmjlj0TnTGYMFwt5MqvWvwRR
TOvhbH++ZeebGTORFL3sW50iKSphCH7H0ih2yDpvS7RivQeMtWluor/RxXz5nY2E
95PtssryTplwZ6/fUF4hU1Ea5tKWHReANdX4MEy5tW/ooegZ5kMgeSTKuzTovcrB
qb3hoVI/5pkzphJKEgWmlPqcL0uriRIWy5u4itRMionffve8gU51r5iTTt1TiPT9
quQ+hQZgaqeTPxcI1Ov8V2U3CqenTuS/5T4RG5gPDjCQP6e1qBVgDr+phlBQJ5Oy
SXGZJyfDiS50TAUpRLEvjIVfbHGdY4vFekvYi/srJq5Fxqbuok8XvqYzBZ/v5mu0
C/aYvm7NpBktkChMRA/NsYlzZOWo8BsVvXSL5d1GL0pR7WulMsi2AFi4sxlvx6Wd
F0PA/JMlWWtDHo2A7ubnSu5ZD/KJVrl4V3xCieDG9MoHv6wgPQ==
-----END CERTIFICATE-----
---
# file: playbook.yml
- hosts: vagrant
sudo: yes
roles:
- kerberos
- cactus_service
vars:
GMP: "gmp-4.3.2"
MPFR: "mpfr-2.4.2"
MPC: "mpc-0.8.1"
LIBELF: "libelf-0.8.13"
GCC: "gcc-4.9.2"
GMP_ARCHIVE: "{{ GMP }}.tar.bz2"
MPFR_ARCHIVE: "{{ MPFR }}.tar.bz2"
MPC_ARCHIVE: "{{ MPC }}.tar.gz"
LIBELF_ARCHIVE: "{{ LIBELF }}.tar.gz"
GCC_ARCHIVE: "{{ GCC }}.tar.bz2"
tasks:
- name: add AD DC to HOSTS file
lineinfile:
path: /etc/hosts
regexp: "^192.168.33.11 develop-dc-01.develop.local"
line: "192.168.33.11 develop-dc-01.develop.local"
owner: root
group: root
mode: 0644
- name: copy cert to CentOS
copy: src=ca.crt dest=/usr/share/ca.crt
- name: import AD DCs CA Cert for Trusted LDAPS communications
shell: "/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-0.b15.el6_8.i386/jre/bin/keytool -import -alias CALocal -file /usr/share/ca.crt -keystore /etc/pki/java/cacerts -storepass changeit -noprompt"
- name: install necessary packages for kerblib
yum: name="{{ item }}"
with_items:
- boost
- boost-devel
- cmake
- gcc
- gcc-c++
- git
- krb5-devel
- m4
- make
- name: create repos directory
file: path="/opt/repos" state=directory owner=root group=root
- name: create kadminRest directories
file: path="/var/{{ item }}/kadminRest" state=directory owner=root group=root
with_items:
- run
- log
- name: download repos
get_url: url="{{ item.url }}/{{ item.archive }}" dest="/opt/repos/{{ item.archive }}" checksum="{{ item.sum }}"
with_items:
- { url: "ftp://gcc.gnu.org/pub/gcc/infrastructure", archive: "{{ GMP_ARCHIVE }}", sum: "sha256:936162c0312886c21581002b79932829aa048cfaf9937c6265aeaa14f1cd1775" }
- { url: "ftp://gcc.gnu.org/pub/gcc/infrastructure", archive: "{{ MPFR_ARCHIVE }}", sum: "sha256:c7e75a08a8d49d2082e4caee1591a05d11b9d5627514e678f02d66a124bcf2ba" }
- { url: "ftp://gcc.gnu.org/pub/gcc/infrastructure", archive: "{{ MPC_ARCHIVE }}", sum: "sha256:e664603757251fd8a352848276497a4c79b7f8b21fd8aedd5cc0598a38fee3e4" }
- { url: "http://www.mr511.de/software", archive: "{{ LIBELF_ARCHIVE }}", sum: "sha256:591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d" }
- { url: "ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2", archive: "{{ GCC_ARCHIVE }}", sum: "sha256:2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd" }
- name: clone repos
git: repo="{{ item.url }}/{{ item.name }}.git" dest="/opt/repos/{{ item.name }}"
with_items:
- { url: "https://github.com/PennState", name: "kerblib" }
- { url: "https://github.com/PennState", name: "json" }
- { url: "https://github.com/PennState", name: "pistache" }
- { url: "https://git.psu.edu/ais-swe", name: "common-lib" }
- name: extract downloaded repos
unarchive: src="/opt/repos/{{ item }}" dest="/opt/repos/" remote_src=yes
with_items:
- "{{ GMP_ARCHIVE }}"
- "{{ MPFR_ARCHIVE }}"
- "{{ MPC_ARCHIVE }}"
- "{{ LIBELF_ARCHIVE }}"
- "{{ GCC_ARCHIVE }}"
- name: create json.hpp link
file: src="/opt/repos/json/src/json.hpp" dest="/usr/local/include/json.hpp" state=link
- name: build kadminRest (get up and stretch your legs, this will take a while)
shell: bash /vagrant/build-{{ item.build }} > /opt/repos/build-{{ item.build }}.log 2>&1 creates="{{ item.creates }}"
with_items:
- { build: "GMP", creates: "/usr/local/lib/libgmp.a" }
- { build: "MPFR", creates: "/usr/local/lib/libmpfr.a" }
- { build: "MPC", creates: "/usr/local/lib/libmpc.a" }
- { build: "Libelf", creates: "/usr/local/lib/libelf.a" }
- { build: "GCC", creates: "/usr/local/lib/gcc/" }
- { build: "Pistache", creates: "/usr/local/include/pistache/" }
- { build: "Common-lib", creates: "" }
- { build: "KadminRest", creates: "/opt/repos/kerblib/bin/kadminRest" }
- name: copy kadminRest init script
copy: src="kadminRest" dest="/etc/init.d/kadminRest" owner=root group=root mode=0755
- name: register kadminRest
command: chkconfig --level 2345 kadminRest on
- name: start kadminRest
service: name=kadminRest state=started
......@@ -2,7 +2,7 @@
# file: roles/cactus_service/tasks/main.yml
- name: download cactus service from nexus
maven_artifact: group_id="edu.psu.ses.libraries" artifact_id="cactus-web" version={{ cactus_srv_version }} extension="war" repository_url=https://nexus.ci.psu.edu/repository/public/ dest=/tmp/cactus-web.war
maven_artifact: group_id="edu/psu/ses/libraries/" artifact_id="cactus-web" version={{ cactus_srv_version }} extension="war" repository_url=https://nexus.ci.psu.edu/repository/releases/ dest=/tmp/cactus-web.war
- name: copy the cacus jboss cli scripts to the remote host's deployment directory
copy: src="{{ item }}" dest=/tmp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment