File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 99 obs_worker_jobs : 6
1010 container_tag : amd64
1111 obs_repository_server : 10.255.254.0
12+ stunnel_remote_port : 8444
13+ openvpn_ifconfig : " 10.255.254.1 10.255.254.0"
1214
1315 handlers :
1416 - name : Include handlers
2123 - name : Include automatic-updates.yml
2224 ansible.builtin.include_tasks : ../common/automatic-updates.yml
2325
26+ - name : Import ohpc-lenovo-common.yml
27+ ansible.builtin.import_tasks : ../test/ohpc-lenovo-common.yml
28+
2429 - name : Create OBS directories
2530 ansible.builtin.file :
2631 dest : " {{ item }}"
6570 - git
6671
6772 - name : Install stunnel configuration
68- ansible.builtin.copy :
73+ ansible.builtin.template :
6974 src : stunnel.conf
7075 dest : /etc/stunnel/stunnel.conf
7176 owner : root
7277 group : root
7378 mode : " 0600"
7479
7580 - name : Install openvpn configuration
76- ansible.builtin.copy :
81+ ansible.builtin.template :
7782 src : openvpn-obs.conf
7883 dest : /etc/openvpn/client/obs.conf
7984 owner : root
Original file line number Diff line number Diff line change 99 obs_worker_jobs : 6
1010 container_tag : amd64
1111 obs_repository_server : 10.255.255.0
12+ stunnel_remote_port : 8443
13+ openvpn_ifconfig : " 10.255.255.1 10.255.255.0"
1214
1315 handlers :
1416 - name : Include handlers
5052 - git
5153
5254 - name : Install stunnel configuration
53- ansible.builtin.copy :
55+ ansible.builtin.template :
5456 src : stunnel.conf
5557 dest : /etc/stunnel/stunnel.conf
5658 owner : root
5759 group : root
5860 mode : " 0600"
5961
6062 - name : Install openvpn configuration
61- ansible.builtin.copy :
63+ ansible.builtin.template :
6264 src : openvpn-obs.conf
6365 dest : /etc/openvpn/client/obs.conf
6466 owner : root
Original file line number Diff line number Diff line change 11dev tun1
22remote localhost
3- ifconfig 10.255.255.1 10.255.255.0
3+ ifconfig {{ openvpn_ifconfig }}
44secret /etc/openvpn/client/obs.key
55cipher AES-256-CBC
66keepalive 10 60
Original file line number Diff line number Diff line change 11[openvpn]
22client = yes
33accept = 30000
4- connect = obs.openhpc.community:8443
4+ connect = obs.openhpc.community:{{ stunnel_remote_port }}
55cert = /etc/stunnel/stunnel.pem
You can’t perform that action at this time.
0 commit comments