Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Vagrant - Puppet CFSSL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adullact
PKI
Vagrant - Puppet CFSSL
Commits
1ca078b8
Commit
1ca078b8
authored
9 months ago
by
Fabrice Gangler
Browse files
Options
Downloads
Patches
Plain Diff
feat: add Makefile
parent
82aae04a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+65
-0
65 additions, 0 deletions
Makefile
with
65 additions
and
0 deletions
Makefile
0 → 100644
+
65
−
0
View file @
1ca078b8
##-------------------------------------------------------------------------------------------------------------------
up_VM
:
download_puppet_modules vagrant_up
##
Download required Puppet modules and start Vagrant VM
.PHONY
:
up_VM
stop_VM
:
##
Stop Vagrant VM gracefully
vagrant halt
.PHONY
:
stop_VM
remove_VM
:
vagrant_destroy clean_vagrant_directory clean_puppet_modules
##
Destroy Vagrant VM and remove VM directories
.PHONY
:
remove_VM
##
##-------------------------------------------------------------------------------------------------------------------
download_puppet_modules
:
clean_puppet_modules
##
Download all required Puppet modules used to configure the virtual machine
./BUILD.sh
.PHONY
:
download_puppet_modules
clean_puppet_modules
:
##
Remove Puppet modules directory
rm
-r
puppet/modules
||
exit
0
.PHONY
:
clean_puppet_modules
clean_vagrant_directory
:
##
Remove Vagrant directory
rm
-r
.vagrant
||
exit
0
.PHONY
:
clean_vagrant_directory
##-------------------------------------------------------------------------------------------------------------------
vagrant_up
:
##
Start Vagrant VM
,
without download required Puppet modules
vagrant up
vagrant port
.PHONY
:
vagrant_up
vagrant_provision
:
##
Start Vagrant VM
,
without download required Puppet modules
vagrant up
--provision
vagrant port
.PHONY
:
vagrant_provision
vagrant_destroy
:
##
Destroy Vagrant VM
,
without remove VM directories
vagrant destroy
-f
||
exit
0
.PHONY
:
vagrant_destroy
vagrant_port
:
##
Destroy Vagrant VM
,
without remove VM directories
vagrant port
.PHONY
:
vagrant_port
##-------------------------------------------------------------------------------------------------------------------
# Default goal and help
.DEFAULT_GOAL
:=
help
help
:
##
Show this help
@
echo
"Makefile - Vagrant CFSSL (created only for test or demonstration purposes)"
@
echo
""
@
echo
"Usage: make [target]"
@
echo
"---------------------------"
@
echo
""
@
echo
"Targets:"
@
grep
-E
'(^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)'
$(
MAKEFILE_LIST
)
|
awk
'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
|
sed
-e
's/\[32m##/[33m/'
# @grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | sed -e 's/^Makefile:\(.*\)/\1/' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
.PHONY
:
help
#---------------------------------------------#
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment