summaryrefslogtreecommitdiffstats
path: root/cookbooks/aai-resources/aai-resources-auth
diff options
context:
space:
mode:
Diffstat (limited to 'cookbooks/aai-resources/aai-resources-auth')
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md13
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/README.md68
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-devbin0 -> 4002 bytes
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/metadata.rb7
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb8
5 files changed, 96 insertions, 0 deletions
diff --git a/cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md b/cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md
new file mode 100644
index 0000000..c58a274
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md
@@ -0,0 +1,13 @@
+ajsc-aai-auth CHANGELOG
+=======================
+
+This file is used to list changes made in each version of the aai-resources-auth cookbook.
+
+0.1.0
+-----
+- [your_name] - Initial release of aai-resources-auth
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
diff --git a/cookbooks/aai-resources/aai-resources-auth/README.md b/cookbooks/aai-resources/aai-resources-auth/README.md
new file mode 100644
index 0000000..b5157ab
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/README.md
@@ -0,0 +1,68 @@
+aai-resources-auth Cookbook
+======================
+TODO: Enter the cookbook description here.
+
+e.g.
+This cookbook makes your favorite breakfast sandwich.
+
+Requirements
+------------
+TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.
+
+e.g.
+#### packages
+- `toaster` - ajsc-aai-auth needs toaster to brown your bagel.
+
+Attributes
+----------
+TODO: List your cookbook attributes here.
+
+e.g.
+#### ajsc-aai-auth::default
+<table>
+ <tr>
+ <th>Key</th>
+ <th>Type</th>
+ <th>Description</th>
+ <th>Default</th>
+ </tr>
+ <tr>
+ <td><tt>['ajsc-aai-auth']['bacon']</tt></td>
+ <td>Boolean</td>
+ <td>whether to include bacon</td>
+ <td><tt>true</tt></td>
+ </tr>
+</table>
+
+Usage
+-----
+#### aai-resources-auth::default
+TODO: Write usage instructions for each cookbook.
+
+e.g.
+Just include `aai-resources-auth` in your node's `run_list`:
+
+```json
+{
+ "name":"my_node",
+ "run_list": [
+ "recipe[ajsc-aai-auth]"
+ ]
+}
+```
+
+Contributing
+------------
+TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
+
+e.g.
+1. Fork the repository on Github
+2. Create a named feature branch (like `add_component_x`)
+3. Write your change
+4. Write tests for your change (if applicable)
+5. Run the tests, ensuring they all pass
+6. Submit a Pull Request using Github
+
+License and Authors
+-------------------
+Authors: TODO: List authors
diff --git a/cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-dev b/cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-dev
new file mode 100644
index 0000000..3eef135
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-dev
Binary files differ
diff --git a/cookbooks/aai-resources/aai-resources-auth/metadata.rb b/cookbooks/aai-resources/aai-resources-auth/metadata.rb
new file mode 100644
index 0000000..6b940b8
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/metadata.rb
@@ -0,0 +1,7 @@
+name 'aai-resources-auth'
+maintainer 'ATT'
+maintainer_email ''
+license 'All rights reserved'
+description 'Installs/Configures aai-resources-auth'
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version '1.0.0'
diff --git a/cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb b/cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb
new file mode 100644
index 0000000..3c55162
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb
@@ -0,0 +1,8 @@
+cookbook_file "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/auth/aai_keystore" do
+ source "aai_keystore-#{node['aai-resources-config']['AAIENV']}"
+ owner 'aaiadmin'
+ group 'aaiadmin'
+ mode '0755'
+ action :create
+end
+