Compare commits
2 Commits
a9e9902d6e
...
a69fb755f9
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a69fb755f9 | ||
![]() |
73d9e77ee0 |
7
init.sh
7
init.sh
@@ -124,20 +124,21 @@ wi-init(){
|
|||||||
then
|
then
|
||||||
echo "---" > ~/.ansible/vars.yml
|
echo "---" > ~/.ansible/vars.yml
|
||||||
echo "hostname: $HOSTNAME" >> ~/.ansible/vars.yml
|
echo "hostname: $HOSTNAME" >> ~/.ansible/vars.yml
|
||||||
echo "type: $TYPE" >> ~/.ansible/vars.yml
|
echo "info:" >> ~/.ansible/vars.yml
|
||||||
|
echo " type: $TYPE" >> ~/.ansible/vars.yml
|
||||||
echo "config:" >> ~/.ansible/vars.yml
|
echo "config:" >> ~/.ansible/vars.yml
|
||||||
echo " identity:" >> ~/.ansible/vars.yml
|
echo " identity:" >> ~/.ansible/vars.yml
|
||||||
echo " vault:" >> ~/.ansible/vars.yml
|
echo " vault:" >> ~/.ansible/vars.yml
|
||||||
echo " domain: $VAULT_DOMAIN" >> ~/.ansible/vars.yml
|
echo " domain: $VAULT_DOMAIN" >> ~/.ansible/vars.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GIT_DOMAIN="git.cwinfo.net"
|
GIT_DOMAIN="git.waren.io"
|
||||||
GIT_PORT="2222"
|
GIT_PORT="2222"
|
||||||
GIT_REPOSITORY="warengroup-private/infra-plus"
|
GIT_REPOSITORY="warengroup-private/infra-plus"
|
||||||
|
|
||||||
export HVT=${config["login",$ORG]}
|
export HVT=${config["login",$ORG]}
|
||||||
|
|
||||||
/opt/ansible/bin/ansible-galaxy collection install ansible.posix ansible.utils community.crypto community.dns community.docker community.general community.hashi_vault community.libvirt community.mongodb community.mysql community.postgresql containers.podman --upgrade &> /dev/null
|
/opt/ansible/bin/ansible-galaxy collection install ansible.posix ansible.utils ansible.windows community.crypto community.dns community.docker community.general community.grafana community.hashi_vault community.libvirt community.mongodb community.mysql community.postgresql community.windows containers.podman --upgrade &> /dev/null
|
||||||
|
|
||||||
/opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY -d ~/.ansible/pull/infra --accept-host-key --private-key ~/.ssh/keys/init --extra-vars @~/.ansible/vars.yml playbooks/init.yml -t init
|
/opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY -d ~/.ansible/pull/infra --accept-host-key --private-key ~/.ssh/keys/init --extra-vars @~/.ansible/vars.yml playbooks/init.yml -t init
|
||||||
|
|
||||||
|
@@ -50,20 +50,21 @@ wi-init(){
|
|||||||
then
|
then
|
||||||
echo "---" > ~/.ansible/vars.yml
|
echo "---" > ~/.ansible/vars.yml
|
||||||
echo "hostname: $HOSTNAME" >> ~/.ansible/vars.yml
|
echo "hostname: $HOSTNAME" >> ~/.ansible/vars.yml
|
||||||
echo "type: $TYPE" >> ~/.ansible/vars.yml
|
echo "info:" >> ~/.ansible/vars.yml
|
||||||
|
echo " type: $TYPE" >> ~/.ansible/vars.yml
|
||||||
echo "config:" >> ~/.ansible/vars.yml
|
echo "config:" >> ~/.ansible/vars.yml
|
||||||
echo " identity:" >> ~/.ansible/vars.yml
|
echo " identity:" >> ~/.ansible/vars.yml
|
||||||
echo " vault:" >> ~/.ansible/vars.yml
|
echo " vault:" >> ~/.ansible/vars.yml
|
||||||
echo " domain: $VAULT_DOMAIN" >> ~/.ansible/vars.yml
|
echo " domain: $VAULT_DOMAIN" >> ~/.ansible/vars.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GIT_DOMAIN="git.cwinfo.net"
|
GIT_DOMAIN="git.waren.io"
|
||||||
GIT_PORT="2222"
|
GIT_PORT="2222"
|
||||||
GIT_REPOSITORY="warengroup-private/infra-plus"
|
GIT_REPOSITORY="warengroup-private/infra-plus"
|
||||||
|
|
||||||
export HVT=${config["login",$ORG]}
|
export HVT=${config["login",$ORG]}
|
||||||
|
|
||||||
/opt/ansible/bin/ansible-galaxy collection install ansible.posix ansible.utils community.crypto community.dns community.docker community.general community.hashi_vault community.libvirt community.mongodb community.mysql community.postgresql containers.podman --upgrade &> /dev/null
|
/opt/ansible/bin/ansible-galaxy collection install ansible.posix ansible.utils ansible.windows community.crypto community.dns community.docker community.general community.grafana community.hashi_vault community.libvirt community.mongodb community.mysql community.postgresql community.windows containers.podman --upgrade &> /dev/null
|
||||||
|
|
||||||
/opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY -d ~/.ansible/pull/infra --accept-host-key --private-key ~/.ssh/keys/init --extra-vars @~/.ansible/vars.yml playbooks/init.yml -t init
|
/opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY -d ~/.ansible/pull/infra --accept-host-key --private-key ~/.ssh/keys/init --extra-vars @~/.ansible/vars.yml playbooks/init.yml -t init
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user