wardviaene / devops-box Goto Github PK
View Code? Open in Web Editor NEWA vagrant project with an ubuntu box with the tools needed to do DevOps
A vagrant project with an ubuntu box with the tools needed to do DevOps
Trying to do your class and my machine is windows with Hyper-V installed. Would be nice if the image supported it. Users with visual studio and docker would find they are unable to switch to virtual box since hyper-v and virtual box are mutually exclusive and docker for windows requires hyper-v. Note also your class suggests dependence on remote-exec which requires ssh and that's a problem for windows, so I'd love to use your vagrant box.
After installation of vagrant box I try to run following command but I failed.
sudo bash install.sh
: invalid option 2: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
install.sh: line 3: $'\r': command not found
install.sh: line 11: syntax error near unexpected token $'\\\r'' 'nstall.sh: line 11:
[[ ! -f /home/ubuntu/.ssh/mykey ]] \
Error: Error applying plan:
1 error(s) occurred:
aws_instance.example: 1 error(s) occurred:
aws_instance.example: Error launching source instance: InvalidParameterCombina
tion: Virtualization type 'hvm' is required for instances of type 't2.micro'. En
sure that you are using an AMI with virtualization type 'hvm'. For more informat
ion, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/virtualization_types
.html
status code: 400, request id: e5d3c3dc-eaaa-4131-aadf-850069169b07
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
==> devops-box: Running provisioner: shell...
devops-box: Running: /var/folders/nw/_5fb00692vngfylqfvt71wq80000gn/T/vagrant-shell20200304-13022-p20ewj.sh
devops-box: Generating public/private rsa key pair.
devops-box: Your identification has been saved in /home/ubuntu/.ssh/mykey.
devops-box: Your public key has been saved in /home/ubuntu/.ssh/mykey.pub.
devops-box: The key fingerprint is:
devops-box: SHA256:3oLIGWdgfyGiKF4o1U9D6vQYwXHOocEez7r8zrJUTe0 root@ubuntu-xenial
devops-box: The key's randomart image is:
devops-box: +---[RSA 2048]----+
devops-box: | o+.+ |
devops-box: | .+X . . |
devops-box: | ..X+* o . |
devops-box: | o.=.Xo= o |
devops-box: |+...+.B S E |
devops-box: |+ ...B + . |
devops-box: | . .=.. o . |
devops-box: | .+. . |
devops-box: | .=+ |
devops-box: +----[SHA256]-----+
devops-box: Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease
devops-box: Temporary failure resolving 'archive.ubuntu.com'
devops-box: Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
devops-box: Temporary failure resolving 'security.ubuntu.com'
devops-box: Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
devops-box: Temporary failure resolving 'archive.ubuntu.com'
devops-box: Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
devops-box: Temporary failure resolving 'archive.ubuntu.com'
devops-box: Reading package lists...
devops-box: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'archive.ubuntu.com'
devops-box: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
devops-box: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
devops-box: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com'
devops-box: W: Some index files failed to download. They have been ignored, or old ones used instead.
devops-box: Reading package lists...
devops-box: Building dependency tree...
devops-box: Reading state information...
devops-box: E
devops-box: :
devops-box: Unable to locate package docker.io
devops-box: E
devops-box: :
devops-box: Couldn't find any package by glob 'docker.io'
devops-box: E
devops-box: :
devops-box: Couldn't find any package by regex 'docker.io'
devops-box: E
devops-box: :
devops-box: Unable to locate package ansible
devops-box: usermod: group 'docker' does not exist
devops-box: /tmp/vagrant-shell: line 29: pip: command not found
devops-box: /tmp/vagrant-shell: line 32: python: command not found
devops-box: python3: can't open file 'get-pip.py': [Errno 2] No such file or directory
devops-box: /tmp/vagrant-shell: line 36: pip: command not found
devops-box: /tmp/vagrant-shell: line 37: pip: command not found
devops-box: /tmp/vagrant-shell: line 40: /usr/local/bin/terraform: No such file or directory
devops-box: /tmp/vagrant-shell: line 49: /usr/local/bin/packer: No such file or directory
devops-box: /tmp/vagrant-shell: line 29: pip: command not found
devops-box: ERROR: awscli 1.16.269 has requirement botocore==1.13.5, but you'll have botocore 1.12.253 which is incompatible.
devops-box: /tmp/vagrant-shell: line 40: /usr/local/bin/terraform: No such file or directory
devops-box: /tmp/vagrant-shell: line 49: /usr/local/bin/packer: No such file or directory
Getting the following errors and can't continue.
...
devops-box: docker 3.6.0 has requirement requests!=2.18.0,>=2.14.2, but you'll have requests 2.9.1 which is incompatible.
...
devops-box: ++ /usr/local/bin/terraform -v
devops-box: /tmp/vagrant-shell: line 38: /usr/local/bin/terraform: No such file or directory
...
devops-box: /tmp/vagrant-shell: line 47: /usr/local/bin/packer: No such file or directory
...
Don't know how much this repo is updated/watched or if I should try to fix it myself so I can continue the coarse.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.