Skip to content

Commit

Permalink
Merge pull request #1168 from abhishek-sa1/release-1.2.1
Browse files Browse the repository at this point in the history
Issue #1167: Inventory Fix for cobbler
  • Loading branch information
sujit-jadhav authored Jun 3, 2022
2 parents 77d9164 + 5ca2a88 commit 6de77b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion control_plane/roles/provision_cobbler/files/Dockerfile_rocky
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ RUN dnf install -y mod_ssl \
&& dnf clean all \
&& rm -rf /var/cache/dnf

RUN pip3.8 install netaddr
RUN ansible-galaxy collection install ansible.utils:2.5.2
RUN yum install -y grub2-efi-x64 shim-x64
RUN yum install -y yum-utils
RUN dnf config-manager --set-enabled powertools
Expand All @@ -61,4 +63,4 @@ VOLUME [ "/var/www/cobbler", "/var/lib/cobbler/backup", "/mnt" ]

RUN systemctl enable dhcpd

CMD ["sbin/init"]
CMD ["sbin/init"]
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

- name: Filter the ip
set_fact:
vars_new: "{{ var | ipv4('address') | to_nice_yaml}}"
vars_new: "{{ var | ansible.utils.ipv4('address') | to_nice_yaml}}"

- name: Create the static ip
shell: awk -F',' 'NR >1{print $3}' omnia/control_plane/roles/provision_cobbler/files/new_host_mapping_file.csv > static_hosts.yml
Expand Down

0 comments on commit 6de77b9

Please sign in to comment.