Chef Resources to control Google AppEngine https://appengine.google.com
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2016-07-11 16:47:42 -07:00
.github MVP 2016-06-22 13:34:26 -05:00
attributes 0.0.7 release 2016-06-30 12:37:53 -05:00
libraries/google make credential_helper relative 2016-07-11 16:47:42 -07:00
recipes 0.0.6 release 2016-06-30 12:37:01 -05:00
resources Adding version_id to resource 2016-07-07 14:51:12 -07:00
spec Update class API and test code. 2016-06-26 17:51:01 -07:00
test MVP 2016-06-22 13:34:26 -05:00
.gitignore MVP 2016-06-22 13:34:26 -05:00
.kitchen.yml MVP 2016-06-22 13:34:26 -05:00
.rubocop.yml MVP 2016-06-22 13:34:26 -05:00
.travis.yml trying to fix travis 2016-06-30 11:56:27 -05:00
Berksfile MVP 2016-06-22 13:34:26 -05:00
chefignore removed uploads 2016-06-30 17:17:58 -05:00
deploy_via_appcfg Add support to rollover to production & multiple files 2016-06-26 18:07:27 -07:00
Gemfile Add missing spec for Vagrant test system. 2016-06-26 20:34:19 -07:00
LICENSE MVP 2016-06-22 13:34:26 -05:00
metadata.rb make credential_helper relative 2016-07-11 16:47:42 -07:00
Rakefile MVP 2016-06-22 13:34:26 -05:00
README.md 0.0.6 release 2016-06-30 12:37:01 -05:00

appengine cookbook

Build Status

Description

Manage deployment and configuration of a AppEngine application from Google.

Requirements

  • Ubuntu 14.04 +
  • CentOS 7.2 +

Usage

Add the appengine cookbook to your run_list, to make sure that the dependancies are there. After this we have a Custom Resource to create appengine resource. For instance, the following will create "formal-platform-134918" with the following settings.

  appengine "formal-platform-134918" do
    app_id "formal-platform-134918" # this line is optional
    app_yaml "#{node.default['appengine']['source_location']}/app.yaml"
    service_id 'default'
    bucket_name 'chef-conf16-appengine'
    service_account_json   ::File.expand_path("/tmp/gcloud/service_account.json")
    source node.default['appengine']['source_location']
    action :create # this is default, so optional, but you can do the other actions here
  end

app_id: the name of your application id from https://appengine.google.com/

service_id: unless you know what it is, you should set it to default

bucket_name: the storage location for your appengine resource

service_account: the service account json from [here]( https://console.cloud.google.com/iam-admin/serviceaccounts/project?project=&authuser=1), you should add it to files/default/service_account.json in this cookbook

source: location for the source repo to clone the repository

action:

  • :create creates the app, uploads the files from the repo, then activates the app, this is the default action
  • :uploaduploads the files from the repo
  • :delete deletes the app
  • :activate activates the app
  • :stage creates the app, uploads the files from the repo

Recipe

default

Installs the prerequisites to interact with the Google Appengine, including packages, and the gems required.

Testing

ChefSpec

There is basic coverage for the default recipe.

InSpec

TBD

Test Kitchen

The included .kitchen.yml runs the default master deployment in a generic fashion.

License and Author

Copyright 2016 Chef Software, Inc.

Copyright 2016 Google, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.