Giter VIP home page Giter VIP logo

infrastructure-as-code-tutorial's People

Contributors

ajschmidt8 avatar akrk1986 avatar artemmkin avatar datlife avatar davefp avatar delucks avatar mariuszmichalowski avatar moshekaplan avatar nklya avatar pkill37 avatar svemuri1947 avatar xuqingfeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

infrastructure-as-code-tutorial's Issues

In "Install MongoDB"

Get error below running "sudo apt-get install -y mongodb-org" :

"Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 51.8 MB of archives.
After this operation, 215 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools mongodb-org
E: There were unauthenticated packages and -y was used without --allow-unauthenticated

I guess "--allow-unauthenticated" will work but at users own risk.

In 01-prerequisites.md, it is inferred you need to pay google money.

In this line:

You can sign up for $300 in free credits, which will be more than sufficient to complete all of the labs in this tutorial.

it is inferred you need funds for the Google Cloud Platform. While you can apply for the free credits, it does not guarantee that it'll be approved. I've tried myself, informing them I wish to learn more about the platform as a new coder and was denied.

I feel that what is needed, such as paid services, should be made a little more clear.

In 02-manual-operations.md Compute Engine API needs to be enabled

In 02-manual-operations.md the instruction:

glcoud compute instance create

will/may fail with a message to enable "enable Compute Engine API". The error message also gives the fix which is to follow the link and enable the API: https://console.developers.google.com/apis/api/compute.googleapis.com/overview?project=xxxxxxxxxxxx then retry

Install bundler with specified version instead of latest

The current script pulls down the latest version and does not take into account that the Gem file calls for a specific version, and will not compile properly. A tweak to the installation of bundler must be done to get the right version:

replace:

gem install --no-rdoc --no-ri bundler

With:

gem install bundler -v "$(grep -A 1 "BUNDLED WITH" ~/raddit/Gemfile.lock | tail -n 1)"

ansible-playbook deploy.yml fails

If I try and run ansible-playbook deploy.yml
It fails with this message

 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match
'all'

 [WARNING]: Could not match supplied host pattern, ignoring: raddit-app


PLAY [Deploy Raddit App] ***********************************************************************************************
skipping: no hosts matched

PLAY RECAP *************************************************************************************************************

In 04-packer.md , Need to add "account_file" option in json file before building image

In 04-packer.md, the step "Create custom machine image", I got the error

googlecompute: google: could not find default credentials.
See https://developers.google.com/accounts/docs/application-default-credentials for more information.

After googling, I found this link https://www.packer.io/docs/builders/googlecompute.html and it help me to fix the above error.

Step to fix :

  1. "Compute Engine Service Account" need to be created
  2. Export the JSON file
  3. Then add a option "account_file" into addit-base-image.json

Please let me know if I am missing any step that causes this error.

Thanks
Mark

Permission denied when running bundle install

While running through the Manual Operations section I encountered the following error when trying to run bundle install in the raddit project:

An error occurred while installing tilt (2.0.8), and Bundler cannot continue.
Make sure that `gem install tilt -v '2.0.8' --source 'https://rubygems.org/'` succeeds before
bundling.

running the suggested command gave me this:

Fetching: tilt-2.0.8.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /var/lib/gems/2.3.0 directory.

This is after following all the previous instructions, and indeed it also occurs when running the 'Scripts' version of the instructions so it seems to be systemic

in 04-packer.md, error while installing mongodb

@Artemmkin I am new to IaaC and I am following your tutorial,
Getting this error while installing mongodb :

==> googlecompute: W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D68FA50FEA312927
==> googlecompute: W: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release' is not signed.

Could you please guide me please ?

Opening Firewall for 929

Get error below running :

raddit-user@raddit-instance-2:~/raddit$ gcloud compute firewall-rules create allow-raddit-tcp-9292 \
>     --network default \
>     --action allow \
>     --direction ingress \
>     --rules tcp:9292 \
>     --source-ranges 0.0.0.0/0

Creating firewall...failed.
ERROR: (gcloud.compute.firewall-rules.create) Could not fetch resource:
- Insufficient Permission: Request had insufficient authentication scopes.

puma webserver fails due to mongo variables not set

raddit-user@raddit-instance-3:~/raddit$ /bin/bash -lc 'puma'
Puma starting in single mode...

  • Puma version: 5.1.1 (ruby 2.3.1-p112) ("At Your Service")
  • Min threads: 0
  • Max threads: 5
  • Environment: development
  •      PID: 19564
    

/home/raddit-user/raddit/helpers.rb:4: warning: redefining object_id' may cause serious problems /home/raddit-user/raddit/app.rb:18: warning: class variable access from toplevel ! Unable to load application: NameError: uninitialized constant Mongo::Client /home/raddit-user/raddit/app.rb:21:in block in <top (required)>': uninitialized constant Mongo::Client (NameError)
from /var/lib/gems/2.3.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1466:in configure' from /var/lib/gems/2.3.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1959:in block (2 levels) in delegate'
from /home/raddit-user/raddit/app.rb:20:in <top (required)>' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from config.ru:1:in block in

'
from /var/lib/gems/2.3.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in eval' from /var/lib/gems/2.3.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in new_from_string'
from /var/lib/gems/2.3.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in load_file' from /var/lib/gems/2.3.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in parse_file'
from /var/lib/gems/2.3.0/gems/puma-5.1.1/lib/puma/configuration.rb:342:in load_rackup' from /var/lib/gems/2.3.0/gems/puma-5.1.1/lib/puma/configuration.rb:264:in app'
from /var/lib/gems/2.3.0/gems/puma-5.1.1/lib/puma/runner.rb:138:in load_and_bind' from /var/lib/gems/2.3.0/gems/puma-5.1.1/lib/puma/single.rb:44:in run'
from /var/lib/gems/2.3.0/gems/puma-5.1.1/lib/puma/launcher.rb:182:in run' from /var/lib/gems/2.3.0/gems/puma-5.1.1/lib/puma/cli.rb:80:in run'
from /var/lib/gems/2.3.0/gems/puma-5.1.1/bin/puma:10:in <top (required)>' from /usr/local/bin/puma:23:in load'
from /usr/local/bin/puma:23:in `'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.