mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-22 12:37:42 +00:00
Add a arg based cookbook for ansible
This commit is contained in:
parent
63162d05b3
commit
7ce308e8c2
26
ansible-cookbook
Executable file
26
ansible-cookbook
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Initialization - DO NOT REMOVE
|
||||
. helpers/initialize
|
||||
|
||||
##############################################################
|
||||
### Customizations start here ################################
|
||||
##############################################################
|
||||
|
||||
# Barebones cookbook that accepts args to run single recipes
|
||||
|
||||
# Get current directory for future use in links
|
||||
cd $(dirname $0)
|
||||
PROJECT_DIR=$(pwd)
|
||||
|
||||
detect_package_manager
|
||||
|
||||
init_paths_and_vars
|
||||
|
||||
# Get params
|
||||
COOKBOOK_NAME=$1
|
||||
RECIPIE=$2
|
||||
# SET_INSTALLED=$3
|
||||
|
||||
recipe $RECIPIE
|
||||
# set_installed $SET_INSTALLED
|
4
recipes/default/test-recipe
Normal file
4
recipes/default/test-recipe
Normal file
@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
# Simple recipe for debugging
|
||||
|
||||
echo "Running default"
|
4
recipes/no-sudo/test-recipe
Normal file
4
recipes/no-sudo/test-recipe
Normal file
@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
# Simple recipe for debugging
|
||||
|
||||
echo "Running no-sudo"
|
Loading…
Reference in New Issue
Block a user