-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
697ed5b
commit 91bfa17
Showing
93 changed files
with
4,009 additions
and
4,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
exclude_paths: | ||
- terraform-sdwan/ | ||
- .github/ | ||
- files/ | ||
- extras/ | ||
- docs/ | ||
- licenses/ | ||
- myCA/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,40 @@ | ||
FROM alpine:3.11 | ||
|
||
ARG build_date=unspecified | ||
ARG terraform_version=0.12.24 | ||
# ARG virl2_client_pkg=virl2_client-2.1.0b9-py3-none-any.whl | ||
|
||
LABEL org.opencontainers.image.title="Cisco-SDWAN" \ | ||
org.opencontainers.image.description="Cisco SDWAN DevOps" \ | ||
org.opencontainers.image.vendor="Cisco Systems" \ | ||
org.opencontainers.image.created="${build_date}" \ | ||
org.opencontainers.image.url="https://github.com/CiscoDevNet/sdwan-devops" | ||
|
||
RUN apk add --no-cache gcc musl-dev make | ||
|
||
RUN apk add --no-cache python3 | ||
RUN if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi | ||
|
||
RUN python3 -m ensurepip | ||
# RUN rm -r /usr/lib/python*/ensurepip | ||
RUN pip3 install --no-cache --upgrade pip setuptools wheel | ||
# RUN if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi | ||
|
||
RUN apk --update add git sshpass libffi-dev libxml2-dev libxslt-dev python3-dev openssl-dev openssh-keygen | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
# COPY files/${virl2_client_pkg} /tmp/${virl2_client_pkg} | ||
|
||
RUN echo "===> Installing GCC <===" && \ | ||
apk add --no-cache gcc musl-dev make && \ | ||
\ | ||
\ | ||
echo "===> Installing Python <===" && \ | ||
apk add --no-cache python3 && \ | ||
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \ | ||
\ | ||
\ | ||
echo "===> Installing pip <===" && \ | ||
python3 -m ensurepip && \ | ||
rm -r /usr/lib/python*/ensurepip && \ | ||
pip3 install --no-cache --upgrade pip setuptools wheel && \ | ||
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \ | ||
\ | ||
\ | ||
echo "===> Installing dependancies <===" && \ | ||
apk --update add sshpass libffi-dev libxml2-dev libxslt-dev python3-dev openssl-dev openssh-keygen && \ | ||
\ | ||
\ | ||
echo "===> Installing PIP Requirements <===" && \ | ||
pip install -r /tmp/requirements.txt && \ | ||
\ | ||
\ | ||
# echo "===> Installing local virl2 client <===" && \ | ||
# pip install /tmp/${virl2_client_pkg} && \ | ||
# \ | ||
# \ | ||
echo "===> Installing Terraform <===" && \ | ||
apk --update add wget unzip cdrkit curl && \ | ||
\ | ||
\ | ||
wget --quiet https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_amd64.zip && \ | ||
unzip terraform_${terraform_version}_linux_amd64.zip && \ | ||
mv terraform /usr/bin && \ | ||
rm terraform_${terraform_version}_linux_amd64.zip | ||
|
||
ENV ANSIBLE_HOST_KEY_CHECKING=false \ | ||
ANSIBLE_RETRY_FILES_ENABLED=false \ | ||
ANSIBLE_SSH_PIPELINING=true | ||
RUN pip install -r /tmp/requirements.txt | ||
|
||
ARG terraform_version=0.13.7 | ||
|
||
RUN apk --update add wget unzip cdrkit curl | ||
RUN wget --quiet https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_amd64.zip | ||
RUN unzip terraform_${terraform_version}_linux_amd64.zip | ||
RUN mv terraform /usr/bin | ||
RUN rm terraform_${terraform_version}_linux_amd64.zip | ||
|
||
ENV ANSIBLE_HOST_KEY_CHECKING=false | ||
ENV ANSIBLE_RETRY_FILES_ENABLED=false | ||
ENV ANSIBLE_SSH_PIPELINING=true | ||
ENV ANSIBLE_LOCAL_TMP=/tmp | ||
ENV ANSIBLE_REMOTE_TMP=/tmp | ||
|
||
WORKDIR /ansible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
- name: Generate day0 configs for control hosts | ||
hosts: sdwan_control | ||
connection: local | ||
gather_facts: no | ||
tasks: | ||
- name: Generating day0 config | ||
set_fact: | ||
day0_config: "{{ lookup('template', virl_config_template) }}" | ||
when: virl_config_template is defined | ||
|
||
- import_playbook: terraform-apply.yml | ||
vars: | ||
sdwan_type: control | ||
sdwan_type: control |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.