This repo is the core example pipeline bringing vCenter, packer
,
ansible
and inspec
together.
- Prepare your Jenkins instance. You'll need
docker
,git
,sudo
access for at least thejenkins
user. - Make sure your
variables.json
has at leastmaster
set up correctly. Run through the pipeline at least once, withnginx
only commented in theplaybook.yml
- Have your
debian10-template
or the like set up withsudo
for your login, andopen-vm-tools
already installed on the template.
ansible
installedpacker
installedpacker-builder-vphere
installed from here
- Clone this repository and make any changes to the Jenkinsfile
- Take the Jenkinsfile import it into your jenkins instance.
- Edit the following from the variables.json example
- Run the pipeline with changes you may want.
- Clone the
debian10-template
todebian-gold
to start with a "blank slate." - Run the pipeline with master first.
origin/master
as a parameter. - You should show off you having the 2 templates now,
debian-working
anddebian-gold-$DATE
- Rename
debian-gold-$DATE
todebian-gold
, and deletedebian-working
. - Create a PR with with the first part of the playbook.yml uncommented.
- Update with the second part of the playbook, the
ssh-key
. - Update with the third part of the playbook for the
bad-actor
, show off the InSpec failure.
If you would like to see the detailed LICENCE click here.
- Author: JJ Asghar [email protected]
- Author: Will Plusnick [email protected]
Copyright:: 2019- IBM, 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.