cookbook 'sptoolkit', '~> 0.0.16'
sptoolkit (4) Versions 0.0.16 Follow0
Installs/Configures sptoolkit
cookbook 'sptoolkit', '~> 0.0.16', :supermarket
knife supermarket install sptoolkit
knife supermarket download sptoolkit
DESCRIPTION:
This cookbook will install Simple Phish Toolkit (SPT).
The project's website is located here.
REQUIREMENTS:
The primary requirements are Apache, PHP, & MySQL.
PREVIOUS COOKBOOK USERS: READ THIS!
The latest version of this cookbook (version 0.0.16) now supports the latest
version of the Simple Phish Toolkit (SPT); version 0.70. However, if you've
used any previous version of this cookbook you will have to completely
remove your application, drop the spt database, & remove /etc/spt_db_pass.conf.
Most people should be able to accomplish this by performing the following tasks.
Adjust paths according to your environment.
<pre><code>
rm -rf /var/www/spt
mysql -u root -p --execute="DROP DATABASE spt"
rm -f /etc/spt_db_pass.conf.
</code></pre>
So why do I have to completely remove my application and database? Glad you asked! Basically
all previous versions of this cookbook installed a much older version of spt and it's simply
not upgradeable. You can only upgrade from one previous version. However, there is good
news. After the next version of spt is released, and I write an upgrade.rb recipe, upgrading
from that point on should be fairly trivial. This is possible because there's a clear upgrade
path for this application. You can simply only be one version behind. Clear as mud?
ATTRIBUTES:
<pre><code>
Set database user name.
default[:sptoolkit][:db_user] = "spt"
Random password is generated in default.rb
for the database user.
default[:sptoolkit][:db_pass] = ""
Set name of the spt database.
default[:sptoolkit][:db_name] = "spt"
Set root directory for your webserver ( / ).
default[:sptoolkit][:www_root_dir] = "/var/www"
</code></pre>
USAGE:
Apply the sptoolkit recipe to your node definition.
<pre><code>
"run_list": [
"recipe[sptoolkit]"
],
</code></pre>
If your web root directory is not /var/www then you'll want
to override that in a role.
BASIC COOKBOOK RUN DOWN:
+__ Includes the mysql::server & apache2::mod_php5 recipes.
+__ Deploys spt to [:sptoolkit][:www_root_dir].
+__ Installs php53-mysql/php5-mysql.
+__ Sets permissions on [:sptoolkit][:www_root_dir]}/spt as the apache or www-data user.
+__ Creates spt database, spt db user, and generates random password for spt db user.
+__ Writes database credentials to /etc/spt_db_pass.conf
Dependent cookbooks
apache2 >= 0.0.0 |
mysql >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.16 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.0.16 failed this metric
FC047: Attribute assignment does not specify precedence: sptoolkit/recipes/default.rb:90
FC064: Ensure issues_url is set in metadata: sptoolkit/metadata.rb:1
FC065: Ensure source_url is set in metadata: sptoolkit/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sptoolkit/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: sptoolkit/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sptoolkit/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: sptoolkit/recipes/default.rb:78
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.16 failed this metric
Failure: Cookbook should not contain binaries. Found:
sptoolkit/files/default/sptoolkit_0.70.zip
Testing File Metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.0.16 failed this metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.0.16 failed this metric
FC047: Attribute assignment does not specify precedence: sptoolkit/recipes/default.rb:90
FC064: Ensure issues_url is set in metadata: sptoolkit/metadata.rb:1
FC065: Ensure source_url is set in metadata: sptoolkit/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sptoolkit/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: sptoolkit/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sptoolkit/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: sptoolkit/recipes/default.rb:78
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.16 failed this metric
Failure: Cookbook should not contain binaries. Found:
sptoolkit/files/default/sptoolkit_0.70.zip
Testing File Metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.0.16 failed this metric
FC064: Ensure issues_url is set in metadata: sptoolkit/metadata.rb:1
FC065: Ensure source_url is set in metadata: sptoolkit/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sptoolkit/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: sptoolkit/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sptoolkit/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: sptoolkit/recipes/default.rb:78
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.16 failed this metric
Failure: Cookbook should not contain binaries. Found:
sptoolkit/files/default/sptoolkit_0.70.zip
Testing File Metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.0.16 failed this metric
0.0.16 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number