jimbo_management_site 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 87cb502664f77e0a81693e96052f207c7399441400ec7973b336bd0211203657
4
+ data.tar.gz: 5aadbaf245715ab27bb6263598553ec26c770665191116f456579be649b8f96b
5
+ SHA512:
6
+ metadata.gz: 992b99bb92b76e0682d14aaa9a18a7138ce0f0ccd813698be1731164872d3763444f6476ccd85e70111b3aeba0a2e74f6569168c5a0d74f5102e893f2b8a7627
7
+ data.tar.gz: 206bb78e6bdb9d8a54e7bc13e9284a5fe4bca46cdd9c5b5731b8c6b8de9ee3666d50cc40bac8a1325b9dc88a7e28ab796d54365817dc898d36d662066b20d648
checksums.yaml.gz.sig ADDED
Binary file
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,37 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: single_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: single_quotes
11
+
12
+ Layout/LineLength:
13
+ Enabled: true
14
+ Max: 120
15
+
16
+ Metrics/MethodLength:
17
+ Enabled: true
18
+ Max: 20
19
+
20
+ Style/FrozenStringLiteralComment:
21
+ Enabled: false
22
+
23
+ Metrics/AbcSize:
24
+ Enabled: false
25
+
26
+ Layout/CommentIndentation:
27
+ Enabled: false
28
+
29
+ Naming/AsciiIdentifiers:
30
+ Enabled: false
31
+
32
+ Naming/FileName:
33
+ Enabled: false
34
+
35
+ Naming/VariableNumber:
36
+
37
+ Enabled: false
data/Berksfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://supermarket.chef.io'
4
+
5
+ cookbook 'vagrant'
6
+ cookbook 'docker'
7
+ cookbook 'docker-ce'
8
+ cookbook 'docker-engine'
9
+ cookbook 'chef-ingredient'
10
+ cookbook 'ssh_authorized_keys'
11
+ cookbook 'apache2'
data/CHANGELOG.md ADDED
@@ -0,0 +1,10 @@
1
+ # jimbo_management_site CHANGELOG
2
+
3
+ This file is used to list changes made in each version of the jimbo_management_site cookbook.
4
+
5
+ ## 0.1.0
6
+
7
+ Initial release.
8
+
9
+ - change 0
10
+ - change 1
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/Policyfile.rb ADDED
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Policyfile.rb - Describe how you want Chef Infra Client to build your system.
4
+ #
5
+ # For more information on the Policyfile feature, visit
6
+ # https://docs.chef.io/policyfile/
7
+
8
+ # A name that describes what the system you're building with Chef does.
9
+ name 'jimbo_management_site'
10
+
11
+ # Where to find external cookbooks:
12
+ default_source :supermarket do |s|
13
+ s.preferred_for 'apache2', 'yum-epel', 'php', 'apt', 'chef-ingredient'
14
+ end
15
+
16
+ # Where to find external cookbooks:
17
+ default_source :chef_server, 'https://api.chef.io/organizations/jimbodragon' do |s|
18
+ s.preferred_for 'jimbo_management_site', 'deploy-context'
19
+ end
20
+
21
+ # run_list: chef-client will run these recipes in the order specified.
22
+ run_list 'jimbo_management_site::default'
23
+
24
+ # Specify a custom source for a single cookbook:
25
+ cookbook 'jimbo_management_site', path: '.'
26
+ cookbook 'apache2'
27
+ cookbook 'php'
28
+ cookbook 'deploy-context'
29
+
30
+ named_run_list :jimbo_management_site, ['recipe[jimbo_management_site::default]']
31
+ named_run_list :website, ['recipe[jimbo_management_site::website]']
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # jimbo_management_site
2
+
3
+ TODO: Enter the cookbook description here.
4
+
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'fileutils'
4
+
5
+ require 'bundler/gem_tasks'
6
+ require 'rspec/core/rake_task'
7
+ require 'rubocop/rake_task'
8
+ require 'git-version-bump/rake-tasks'
9
+
10
+ RSpec::Core::RakeTask.new(:spec)
11
+ RuboCop::RakeTask.new
12
+
13
+ task test_framework: %i[delete rubocop install:local spec delete]
14
+ task default: %i[test_framework build install:local]
15
+ task cicd: %i[test_framework release_framework test_version]
16
+ task test_version: %i[install compliance]
17
+ task release_framework: %i[delete version:bump:minor release]
18
+
19
+ task :build_cookbook do
20
+ system('knife cookbook upload jimbo_management_site')
21
+ end
22
+
23
+ task :install_policy do
24
+ system('chef install Policyfile.rb')
25
+ end
26
+
27
+ task :release_policy do
28
+ system('chef push prod Policyfile.lock.json')
29
+ end
30
+
31
+ task :compliance do
32
+ inspect_opts = [
33
+ '--input-file',
34
+ File.join('compliance', 'inputs', 'user.yml'),
35
+ '--waiver-file',
36
+ File.join('compliance', 'waivers', 'jimbo_management_site.yml')
37
+ ]
38
+ system("inspec exec git@github.com:JimboDragonGit/rubygem_baseline.git #{inspect_opts.join(' ')}")
39
+ end
40
+
41
+ task :delete do
42
+ system('kitchen destroy base')
43
+ File.delete('Policyfile.lock.json') if File.exist?('Policyfile.lock.json')
44
+ File.delete('Gemfile.lock') if File.exist?('Gemfile.lock')
45
+ File.delete('.rspec_status') if File.exist?('.rspec_status')
46
+ profiles_folder = File.join(%w[compliance profiles])
47
+ Dir.children(profiles_folder).each do |sub_folder|
48
+ vendor_folder = File.join(profiles_folder, sub_folder, 'vendor')
49
+ inspec_file = File.join(profiles_folder, sub_folder, 'inspec.lock')
50
+ FileUtils.rm_rf(vendor_folder) if File.exist?(vendor_folder)
51
+ File.delete(inspec_file) if File.exist?(inspec_file)
52
+ end
53
+ end
data/base_check.log ADDED
@@ -0,0 +1,11 @@
1
+ -----> Starting Test Kitchen (v3.3.2)
2
+ -----> Converging <default-jimbodragon-base-image>...
3
+ Preparing files for transfer
4
+ Policy lock file doesn't exist, running `/opt/chef-workstation/bin/chef-cli install` for Policyfile /home/jimboadmin/jimbo_management_site/Policyfile.rb...
5
+ Building policy jimbo_management_site
6
+ Expanded run list: recipe[jimbo_management_site::default]
7
+ Caching Cookbooks...
8
+ Installing jimbo_management_site >= 0.0.0 from path
9
+ Error: Failed to generate Policyfile.lock
10
+ Reason: (Chef::Exceptions::InvalidCookbookVersion) '0.19.10.15.gd6954f7.1.dirty.20240607.204033' does not match 'x.y.z' or 'x.y'
11
+
data/chefignore ADDED
@@ -0,0 +1,115 @@
1
+ # Put files/directories that should be ignored in this file when uploading
2
+ # to a Chef Infra Server or Supermarket.
3
+ # Lines that start with '# ' are comments.
4
+
5
+ # OS generated files #
6
+ ######################
7
+ .DS_Store
8
+ ehthumbs.db
9
+ Icon?
10
+ nohup.out
11
+ Thumbs.db
12
+ .envrc
13
+
14
+ # EDITORS #
15
+ ###########
16
+ .#*
17
+ .project
18
+ .settings
19
+ *_flymake
20
+ *_flymake.*
21
+ *.bak
22
+ *.sw[a-z]
23
+ *.tmproj
24
+ *~
25
+ \#*
26
+ REVISION
27
+ TAGS*
28
+ tmtags
29
+ .vscode
30
+ .editorconfig
31
+
32
+ ## COMPILED ##
33
+ ##############
34
+ *.class
35
+ *.com
36
+ *.dll
37
+ *.exe
38
+ *.o
39
+ *.pyc
40
+ *.so
41
+ */rdoc/
42
+ a.out
43
+ mkmf.log
44
+
45
+ # Testing #
46
+ ###########
47
+ .circleci/*
48
+ .codeclimate.yml
49
+ .delivery/*
50
+ .foodcritic
51
+ .kitchen*
52
+ .mdlrc
53
+ .overcommit.yml
54
+ .rspec
55
+ .rubocop.yml
56
+ .travis.yml
57
+ .watchr
58
+ .yamllint
59
+ azure-pipelines.yml
60
+ Dangerfile
61
+ examples/*
62
+ features/*
63
+ Guardfile
64
+ kitchen.yml*
65
+ mlc_config.json
66
+ Procfile
67
+ Rakefile
68
+ spec/*
69
+ test/*
70
+
71
+ # SCM #
72
+ #######
73
+ .git
74
+ .gitattributes
75
+ .gitconfig
76
+ .github/*
77
+ .gitignore
78
+ .gitkeep
79
+ .gitmodules
80
+ .svn
81
+ */.bzr/*
82
+ */.git
83
+ */.hg/*
84
+ */.svn/*
85
+
86
+ # Berkshelf #
87
+ #############
88
+ Berksfile
89
+ Berksfile.lock
90
+ cookbooks/*
91
+ tmp
92
+
93
+ # Bundler #
94
+ ###########
95
+ vendor/*
96
+ Gemfile
97
+ Gemfile.lock
98
+
99
+ # Policyfile #
100
+ ##############
101
+ Policyfile.rb
102
+ Policyfile.lock.json
103
+
104
+ # Documentation #
105
+ #############
106
+ CODE_OF_CONDUCT*
107
+ CONTRIBUTING*
108
+ documentation/*
109
+ TESTING*
110
+ UPGRADING*
111
+
112
+ # Vagrant #
113
+ ###########
114
+ .vagrant
115
+ Vagrantfile
@@ -0,0 +1,11 @@
1
+
2
+ <?php
3
+
4
+ $dir = "deploy-context";
5
+ $dh = opendir($dir);
6
+ while(false !== ($filename = readdir($dh)))
7
+ {
8
+ echo '<br>' . $filename . ' <a href="' . $dir . '/' . $filename . '">view</a></br>';
9
+ }
10
+
11
+ ?>
data/kitchen.yml ADDED
@@ -0,0 +1,94 @@
1
+ ---
2
+ driver:
3
+
4
+ provisioner:
5
+ name: chef_infra
6
+ always_update_cookbooks: true
7
+ kitchen_root: <%= ::Dir.pwd %>
8
+
9
+ verifier:
10
+ name: inspec
11
+ title: InSpec Profile for Deploy-Context
12
+ maintainer: Jimmy Provencher
13
+ copyright: JimboDragon
14
+ copyright_email: jimmy.provencher@hotmail.ca
15
+ license: Apache-2.0
16
+ summary: An InSpec Compliance Profile for Deploy-Context
17
+
18
+ platforms:
19
+ - name: jimbodragon-local-image
20
+ driver:
21
+ name: vagrant
22
+ box: bento/ubuntu-20.04
23
+ cache_directory: <%= File.expand_path("#{::Dir.pwd}/omnibus/cache") %>
24
+ kitchen_cache_directory: <%= File.expand_path("#{::Dir.pwd}/.kitchen/cache") %>
25
+ domain: jimbodragon.qc.to
26
+ vm_hostname: jimbodragon.qc.to
27
+ network:
28
+ - ["forwarded_port", {guest: 22, host: 2220}]
29
+ - ["forwarded_port", {guest: 80, host: 8880}]
30
+ - ["forwarded_port", {guest: 443, host: 4430}]
31
+ customize:
32
+ memory: 8196
33
+ cpus: 2
34
+ firmware: bios
35
+ hwvirtex: "on"
36
+ vtxvpid: "on"
37
+ vtxux: "on"
38
+ nested-hw-virt: "on"
39
+ cpuhotplug: "on"
40
+ vrde: "on"
41
+ vrdeport: 3390
42
+ autostart-enabled: "on"
43
+ pre_create_command: "ssh-keygen -f \"/home/jimboadmin/.ssh/known_hosts\" -R \"[127.0.0.1]:2222\"; ssh-keygen -f \"/home/jimboadmin/.ssh/known_hosts\" -R \"[jimbodragon.qc.to]:2221\";"
44
+
45
+ - name: jimbodragon-base-image
46
+ driver:
47
+ name: ec2
48
+ # aws_ssh_key_id: id_rsa-aws
49
+ security_group_ids: ['sg-0e386fa88df9d6d7a']
50
+ # region: ca-central-1
51
+ # availability_zone: b
52
+ subnet_id: subnet-086ba8845798d24c1
53
+ # iam_profile_name: chef-client
54
+ instance_type: m3.medium
55
+ associate_public_ip: true
56
+ interface: dns
57
+ image_search:
58
+ owner-id: "099720109477"
59
+ name: 'ubuntu/images/*/ubuntu-*-20.04*-amd64*'
60
+ user_data: "apt update"
61
+ - name: jimbodragon-next-image
62
+ driver:
63
+ name: ec2
64
+ # aws_ssh_key_id: id_rsa-aws
65
+ security_group_ids: ['sg-0e386fa88df9d6d7a']
66
+ # region: ca-central-1
67
+ # availability_zone: b
68
+ subnet_id: subnet-086ba8845798d24c1
69
+ # iam_profile_name: chef-client
70
+ instance_type: m3.medium
71
+ associate_public_ip: true
72
+ interface: dns
73
+ image_search:
74
+ name: 'ubuntu/images/*/ubuntu-*-22.04*-amd64*'
75
+ user_data:
76
+ - apt update
77
+
78
+ suites:
79
+ - name: default
80
+ includes:
81
+ - jimbodragon-local-image
82
+ - jimbodragon-base-image
83
+ attributes:
84
+ infra_chef:
85
+ project_name: jimbodragon
86
+ named_run_list: jimbo_management_site
87
+ verifier:
88
+ name: inspec
89
+ inspec_tests:
90
+ - compliance/profiles/jimbodragon-environment
91
+ - compliance/profiles/jimbodragon-workstation
92
+ - compliance/profiles/jimbodragon-applications
93
+ - compliance/profiles/jimbodragon-users
94
+ - compliance/profiles/jimbodragon-git
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # DeployRubygem - deploy a gem using rake
4
+ # Containing a class
5
+ module JimboManagementSiteTestOptions
6
+ # Using Inspec to deploy and manage Inspec
7
+ class JimboManagementSiteTestOptions
8
+ def project_name
9
+ 'jimbo_management_site'
10
+ end
11
+
12
+ def git
13
+ 'git@github.com:JimboDragonGit/jimbo_management_site.git'
14
+ end
15
+
16
+ def chefrepo_git
17
+ 'git@github.com:JimboDragonGit/jimbodragon.git'
18
+ end
19
+
20
+ def chefrepo_path
21
+ '/usr/local/chef/repo/jimbodragon'
22
+ end
23
+
24
+ def dependencies
25
+ %w[
26
+ deploy_rubygem
27
+ ]
28
+ end
29
+
30
+ def path
31
+ File.join(ENV['HOME'], 'jimbo_management_site')
32
+ end
33
+
34
+ def compile
35
+ {
36
+ project_name: project_name,
37
+ git: git,
38
+ chefrepo_git: chefrepo_git,
39
+ chefrepo_path: chefrepo_path,
40
+ dependencies: dependencies,
41
+ path: path
42
+ }
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module JimboManagementSiteTest
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'jimbo_management_site/version'
4
+ require_relative 'jimbo_management_site/jimbo_management_site_options'
5
+
6
+ require 'deploy_rubygem'
7
+
8
+ # DeployRubygemAcceptanceTest - Acceptance test for deploy_rubygem
9
+ module DeployRubygemAcceptanceTest
10
+ class Error < StandardError; end
11
+ # Your code goes here...
12
+ end
data/metadata.rb ADDED
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'git-version-bump'
4
+
5
+ name 'jimbo_management_site'
6
+ maintainer 'Jimmy Provencher'
7
+ maintainer_email 'jimmy.provencher@hotmail.ca'
8
+ license 'All Rights Reserved'
9
+ description 'Installs/Configures jimbo_management_site'
10
+ version GVB.version
11
+ chef_version '>= 16.0'
12
+
13
+ # The `issues_url` points to the location where issues for this cookbook are
14
+ # tracked. A `View Issues` link will be displayed on this cookbook's page when
15
+ # uploaded to a Supermarket.
16
+ #
17
+ # issues_url 'https://github.com/<insert_org_here>/jimbo_management_site/issues'
18
+
19
+ # The `source_url` points to the development repository for this cookbook. A
20
+ # `View Source` link will be displayed on this cookbook's page when uploaded to
21
+ # a Supermarket.
22
+ #
23
+ # source_url 'https://github.com/<insert_org_here>/jimbo_management_site'
24
+
25
+ gem 'deploy_rubygem'
26
+
27
+ depends 'apache2'
28
+ depends 'php'
29
+ depends 'apt'
Binary file
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jimbo_management_site
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jimmy Provencher
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEDDCCAnSgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFqaW1t
14
+ eS5wcm92ZW5jaGVyL0RDPWhvdG1haWwvREM9Y2EwHhcNMjMxMDI4MDI1MjM2WhcN
15
+ MjQxMDI3MDI1MjM2WjAsMSowKAYDVQQDDCFqaW1teS5wcm92ZW5jaGVyL0RDPWhv
16
+ dG1haWwvREM9Y2EwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCex0r1
17
+ ngWBVriaiIpaW08qeFeaCMqRlotYWvXA4M796ahhyE0HUAz8IfqXyZL9FU3lyOW2
18
+ AdtO8ISR0W1nwOn3hJj6KL+KDylHP0Ih3k7pI7NysaBxi3QlpWSVOw+DOJA2OsLm
19
+ W/a9ZTeRigHiLkq4ZGIYiJFw7LhZSC1onXkGXu7vjST0ZFGL75z7kg+7zVRdB8IB
20
+ LwfwU93VPlRdNSBu4D3te0A6jN+Gvh2zvAKqd5muxT2869R0AaSDDeXyn70CbQry
21
+ AgXwO62Zl0whs5SYKZT4SHTsKPPEvIaj9UXJ863/lvxUQaqvpl+w+I/JvWaBcUS5
22
+ Ym+11VgydPyPZUiJN9EsvJJw9SuxjOXFtoGBVJ5SC3bgHeN6n74c8TCoH0IzZYlE
23
+ NLdQLw673cC4PkU2TRLYd9hKkH/0br/uxFiIcKjb0NfGERjZhYNugYNPCUzeYiM7
24
+ s4azT0a9oAbTVDjObG6M1xwOstnrdJtRaYDCswjVVtusAI10kNj4pvLVndECAwEA
25
+ AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFF8GAfL+8GMx
26
+ W4bMFtNqJokjAxwQMA0GCSqGSIb3DQEBCwUAA4IBgQAmnJ6EvkNZ9S8y7UfGs8JQ
27
+ 0/mDaGm6cbr2o8e72DtHUd31uwiubBBNdWVKP4mEeXkqGvA0aEr/+cNY1dwngxD8
28
+ e4H5i+9ILFRR2MtmEJZRm0p5Ccojseyk1fgNW7hnuQl4ah7G41W3k2HhrQgkft0/
29
+ x32pOZ3Q877cIhkBf+aoTKo6VWsYyP0NrMofsqLrAx8AnJBXrbCm1bMlL5g+HuFF
30
+ 8Wtbt5UCECn13T/nr5sns81aMPcmI/Q6T3AEMq4+ijRQ9PxuHKTonalDVc0b56YX
31
+ hDB+YMAZYLdIKSv7OPb6sy3DOp+PDatZAILJumjwB/r7mlEYyU88Dzc2m5PPTylC
32
+ 4roqVGgELD70cQUIQOlvzz/QmHs42m5SzuXKg3yKlM1PFV6+bO21qoaZ1voRiKQB
33
+ n6Pwa3EckU/5n8N6gUJTAmGyu6Ncu1pbsZtH450+BJ2z82JNXomdFYlnG8+1XNlj
34
+ 3M1sBFUHvqrBg2hQkQcLHokmQYrYsRK5A7HrxwKcmwM=
35
+ -----END CERTIFICATE-----
36
+ date: 2024-06-08 00:00:00.000000000 Z
37
+ dependencies:
38
+ - !ruby/object:Gem::Dependency
39
+ name: deploy_rubygem
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ - !ruby/object:Gem::Dependency
53
+ name: cucumber
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "~>"
57
+ - !ruby/object:Gem::Version
58
+ version: '9.0'
59
+ type: :runtime
60
+ prerelease: false
61
+ version_requirements: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - "~>"
64
+ - !ruby/object:Gem::Version
65
+ version: '9.0'
66
+ description: By using cucumber, validate steps of deploy_rubygem
67
+ email:
68
+ - jimmy.provencher@hotmail.ca
69
+ executables: []
70
+ extensions: []
71
+ extra_rdoc_files: []
72
+ files:
73
+ - ".rspec"
74
+ - ".rubocop.yml"
75
+ - Berksfile
76
+ - CHANGELOG.md
77
+ - LICENSE
78
+ - Policyfile.rb
79
+ - README.md
80
+ - Rakefile
81
+ - base_check.log
82
+ - chefignore
83
+ - files/html/report.php
84
+ - kitchen.yml
85
+ - lib/jimbo_management_site.rb
86
+ - lib/jimbo_management_site/jimbo_management_site_options.rb
87
+ - lib/jimbo_management_site/version.rb
88
+ - metadata.rb
89
+ - pkg/jimbo_management_site-0.1.0.gem
90
+ homepage: https://github.com/JimboDragonGit/jimbo_management_site
91
+ licenses:
92
+ - MIT
93
+ metadata:
94
+ bug_tracker_uri: https://github.com/JimboDragonGit/jimbo_management_site/issues
95
+ changelog_uri: https://github.com/JimboDragonGit/jimbo_management_site/releases
96
+ homepage_uri: https://github.com/JimboDragonGit/jimbo_management_site
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '3.0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ requirements: []
112
+ rubygems_version: 3.2.32
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: Execute accpetance test on deploy_rubygem
116
+ test_files: []
metadata.gz.sig ADDED
Binary file