Giter VIP home page Giter VIP logo

awesome_customers_ubuntu's People

Contributors

tpetchel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

awesome_customers_ubuntu's Issues

NameError running kitchen converge on database

I am following the tutorial, but on https://learn.chef.io/manage-a-web-app/ubuntu/configure-the-database/ I am stuck as kitchen converge throws an error:


   ================================================================================
   Recipe Compile Error in /tmp/kitchen/cache/cookbooks/awesome_customers_ubuntu/recipes/default.rb
   ================================================================================

   NameError
   ---------
   No resource, method, or local variable named `create_tables_script_path' for `Chef::Recipe "database"'

   Cookbook Trace:
   ---------------
     /tmp/kitchen/cache/cookbooks/awesome_customers_ubuntu/recipes/database.rb:47:in `from_file'
     /tmp/kitchen/cache/cookbooks/awesome_customers_ubuntu/recipes/default.rb:10:in `from_file'

   Relevant File Content:
   ----------------------
   /tmp/kitchen/cache/cookbooks/awesome_customers_ubuntu/recipes/database.rb:

    40:    password node['awesome_customers_ubuntu']['database']['admin_password']
    41:    database_name node['awesome_customers_ubuntu']['database']['dbname']
    42:    host node['awesome_customers_ubuntu']['database']['host']
    43:    action [:create, :grant]
    44:  end
    45:  
    46:  # Write schema seed file to filesystem.
    47>> cookbook_file create_tables_script_path do
    48:    source 'create-tables.sql'
    49:    owner 'root'
    50:    group 'root'
    51:    mode '0600'
    52:  end
    53:  
    54:  # Seed the database with a table and test data.
    55:  execute "initialize #{node['awesome_customers_ubuntu']['database']['dbname']} database" do
    56:    command "mysql -h #{node['awesome_customers_ubuntu']['database']['host']} -u #{node['awesome_customers_ubuntu']['database']['admin_username']} -p#{node['awesome_customers_ubuntu']['database']['admin_password']} -D #{node['awesome_customers_ubuntu']['database']['dbname']} < #{create_tables_script_path}"

   Platform:
   ---------
   x86_64-linux

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.