Skip to content

Commit a4f7042

Browse files
authored
Fix/ansible templates (#142)
* feat(compose): comelete compose prompt * fix(kuber): remove lb * feat(compose): compelete compose prompt * nothing * fix(compose): totally restructre docker compose generator * fix(compose): directory builder * fix(compose): compelete compose generation allgorithm * fix(compose): edit default values for documentation * feat(compose): add union type input for networks * fix(routes): add /api to all routes * fix(installation): fix terraform installation process and model * fix(installation): create MyBash for scripts * fix(bash): edit bi/bash * fix(docker install): fix it * feat(install): add jenkins and gitlab installation * Update unit-test.yml * fix(install): fix jenkins and gitlab * fix(crawler): fix the crowler to crawl 2 aws urls * fix(ansible_nginx): fix nginx file generartion * fix(docker_ansible): fix docker ansible template generation * fix(ansible_kuber): fix ansible kuber section * fix(kuber playbook): fix kuber playbook * fix(kuber playbook): fix kuber playbook * fix(ansible kuber): fix yaml formats * fix(ansible kuber): fix yaml formats
1 parent b502288 commit a4f7042

File tree

20 files changed

+1087
-1871
lines changed

20 files changed

+1087
-1871
lines changed

app/directory_generators/ansible_generator.py

Lines changed: 77 additions & 806 deletions
Large diffs are not rendered by default.

app/media/MyAnsible/group_vars/all

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ docker_apt_repo: "https://download.docker.com/linux/ubuntu"
2424
kubernetes_gpg_keyring_path: "/etc/apt/keyrings/kubernetes-apt-keyring.gpg"
2525
kubernetes_gpg_key_url: "https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key"
2626
kubernetes_apt_repo: "https://pkgs.k8s.io/core:/stable:/v1.31/deb/"
27-
k8s_version: "1.31.2" # see here https://kubernetes.io/releases/patch-releases/ and https://github.com/kubernetes/kubernetes/releases
27+
k8s_version: 1.31 # see here https://kubernetes.io/releases/patch-releases/ and https://github.com/kubernetes/kubernetes/releases
2828

2929
# CRI
3030
cri_socket: unix:///var/run/containerd/containerd.sock
@@ -35,3 +35,4 @@ ansible_port: 22
3535
ansible_python_interpreter: "/usr/bin/python3"
3636
domain: "devopsgpt.com"
3737
apiserver_url: "devopsgpt.com"
38+

app/media/MyAnsible/hosts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ string
1010
string
1111

1212
[k8s_workers]
13-
string
13+
string

app/media/MyAnsible/kubernetes_playbook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
- hosts: all
23
roles:
34
- role: preinstall
@@ -36,3 +37,5 @@
3637
gather_facts: yes
3738
any_errors_fatal: true
3839
tags: [join_worker]
40+
41+

app/media/MyAnsible/roles/init_k8s/tasks/cni.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@
1818
delegate_to: "{{ groups['k8s_masters'][0] }}"
1919
when: calico_crd_check.rc != 0
2020
run_once: true
21+
22+

app/media/MyAnsible/roles/init_k8s/tasks/initk8s.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@
6262
- name: Example Task After Reboot
6363
debug:
6464
msg: "Server back online and ready for tasks."
65+

app/media/MyAnsible/roles/init_k8s/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66

77
- name: Initialize Calico CNI
88
include_tasks: cni.yml
9+

app/media/MyAnsible/roles/join_master/tasks/join_master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,4 @@
9898
state: present
9999
when:
100100
- inventory_hostname in groups['k8s_masters']
101+

app/media/MyAnsible/roles/join_master/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
- name: Join master(s) node to cluster
55
include_tasks: join_master.yml
6+

app/media/MyAnsible/roles/join_worker/tasks/join_worker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636
when:
3737
- inventory_hostname not in groups['k8s_masters']
3838
- not kubeadm_already_run.stat.exists
39+

0 commit comments

Comments
 (0)