Skip to content

Commit

Permalink
Initial Commit (WARNING)
Browse files Browse the repository at this point in the history
The user 'wordpressuser' was created in the database with no password. I was able to login without being prompted:

$ mysql -u wordpressuser
mysql> \q
So I updated the password for the 'wordpressuser' by setting to the password value I found in /var/www/wordpress/wp-config.php.

$ mysql -u wordpressuser
mysql> SET PASSWORD FOR 'wordpressuser'@'localhost' = OLD_PASSWORD('PASSWORD_FOUND_IN_WPCONFIG');
mysql> \q
$ mysql -u wordpressuser -p
http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html#function_old-password

brint/wordpress-cookbook#66
  • Loading branch information
ChefDK User committed Feb 13, 2016
0 parents commit 34cae98
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# wordpress-wdrt

TODO: Enter the cookbook description here.

100 changes: 100 additions & 0 deletions chefignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Put files/directories that should be ignored in this file when uploading
# or sharing to the community site.
# Lines that start with '# ' are comments.

# OS generated files #
######################
.DS_Store
Icon?
nohup.out
ehthumbs.db
Thumbs.db

# SASS #
########
.sass-cache

# EDITORS #
###########
\#*
.#*
*~
*.sw[a-z]
*.bak
REVISION
TAGS*
tmtags
*_flymake.*
*_flymake
*.tmproj
.project
.settings
mkmf.log

## COMPILED ##
##############
a.out
*.o
*.pyc
*.so
*.com
*.class
*.dll
*.exe
*/rdoc/

# Testing #
###########
.watchr
.rspec
spec/*
spec/fixtures/*
test/*
features/*
examples/*
Guardfile
Procfile
.kitchen*
.rubocop.yml

# SCM #
#######
.git
*/.git
.gitignore
.gitmodules
.gitconfig
.gitattributes
.svn
*/.bzr/*
*/.hg/*
*/.svn/*

# Berkshelf #
#############
Berksfile
Berksfile.lock
cookbooks/*
tmp

# Cookbooks #
#############
CONTRIBUTING*
CHANGELOG*
TESTING*

# Strainer #
############
Colanderfile
Strainerfile
.colander
.strainer

# Vagrant #
###########
.vagrant
Vagrantfile

# Travis #
##########
.travis.yml
32 changes: 32 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "wordpress-wdrt",
"description": "Installs/Configures wordpress-wdrt",
"long_description": "Installs/Configures wordpress-wdrt",
"maintainer": "The Authors",
"maintainer_email": "[email protected]",
"license": "all_rights",
"platforms": {
},
"dependencies": {
"wordpress": ">= 0.0.0"
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
},
"groupings": {
},
"recipes": {
},
"version": "0.1.0",
"source_url": "",
"issues_url": ""
}
10 changes: 10 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Cookbook Name:: wordpress-wdrt
# Recipe:: default
#
# Copyright (c) 2016 The Authors, All Rights Reserved.
#

node.default['wordpress']['db']['host'] = "127.0.0.1"

include_recipe 'wordpress::default'
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'chefspec'
require 'chefspec/berkshelf'
20 changes: 20 additions & 0 deletions spec/unit/recipes/default_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Cookbook Name:: wordpress-wdrt
# Spec:: default
#
# Copyright (c) 2016 The Authors, All Rights Reserved.

require 'spec_helper'

describe 'wordpress-wdrt::default' do
context 'When all attributes are default, on an unspecified platform' do
let(:chef_run) do
runner = ChefSpec::ServerRunner.new
runner.converge(described_recipe)
end

it 'converges successfully' do
expect { chef_run }.to_not raise_error
end
end
end
9 changes: 9 additions & 0 deletions test/integration/default/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

describe 'wordpress-wdrt::default' do
# Serverspec examples can be found at
# http://serverspec.org/resource_types.html
it 'does something' do
skip 'Replace this with meaningful tests'
end
end
8 changes: 8 additions & 0 deletions test/integration/helpers/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'serverspec'

if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM).nil?
set :backend, :exec
else
set :backend, :cmd
set :os, family: 'windows'
end

0 comments on commit 34cae98

Please sign in to comment.