Comments (3)
the config should be similar (the same) with https://www.packer.io/docs/templates/provisioners.html
from dev.
this is the sample of the json spec to configure provisioners:
{
"provisioners": [{
"type": "file",
"source": "~/.gitconfig",
"dest": ".gitconfig"
},{
"type": "shell",
"inline": "echo hello"
}, {
"type": "shell",
"name": "bootstrap",
"path": "script.sh",
"run": "always", // "never"
"preserve_order": true,
"args": [],
"env": {
},
"binary": null,
"privileged": true,
"upload_path": "",
"keep_color": true,
"powershell_args": "",
"powershell_elevated_interactive": false,
"md5": "",
"sha1": ""
}, {
"type": "ansible",
//common
"name": "",
"playbook": "",
"config_file": "",
"extra_vars": {},
"galaxy_command": "",
"galaxy_role_file": "",
"galaxy_roles_path": "",
"groups": {
},
"host_vars": {
"host1": {
"http_port": 80,
"max_requests_per_child": 808
}
},
"inventory_path": "",
"limit": [],
"playbook_command": "",
"raw_arguments": [],
"skip_tags": [],
"start_at_task": "",
"sudo": false,
"sudo_user": "",
"tags": [],
"vault_password_file": "",
"verbose": false,
//specific
"ask_sudo_pass": false,
"ask_vault_pass": false,
"force_remote_user": true,
"host_key_checking": false,
"raw_ssh_args": []
}, {
"type": "ansible_local",
//common
"name": "",
"playbook": "",
"config_file": "",
"extra_vars": {},
"galaxy_command": "",
"galaxy_role_file": "",
"galaxy_roles_path": "",
"groups": {
},
"host_vars": {
"host1": {
"http_port": 80,
"max_requests_per_child": 808
}
},
"inventory_path": "",
"limit": [],
"playbook_command": "",
"raw_arguments": [],
"skip_tags": [],
"start_at_task": "",
"sudo": false,
"sudo_user": "",
"tags": [],
"vault_password_file": "",
"verbose": false,
//specific
"install": true,
"version": "latest",
"install_mode": "default",
"provisioning_path": "/vagrant",
"tmp_path": "/tmp/vagrant-ansible",
"version": "",
""
}, {
"type": "cfengine",
"name": "",
"am_policy_hub": false,
"extra_agent_args": null,
"classes": [],
"deb_repo_file": "/etc/apt/sourceyos.list.d/cfengine-community.list",
"deb_repo_line": "deb https://cfengine.com/pub/apt $(lsb_release -cs) main",
"files_path": null,
"force_bootstrap": false,
"install": true,
"mode": "bootstrap",
"policy_server_address": "",
"repo_gpg_key_url": "https://cfengine.com/pub/gpg.key",
"run_file": null,
"upload_path": "/tmp/vagrant-cfengine-file",
"yum_repo_file": "/etc/yum.repos.d/cfengine-community.repo",
"yum_repo_url": "https://cfengine.com/pub/yum/",
"package_name": "cfengine-community"
}, {
"type": "chef_solo",
//common
"name": "",
"binary_path": "",
"binary_env": "",
"install": true, //false, "force"
"installer_download_path": "",
"log_level": "info",
"product": "chef",
"channel": "stable",
"version": "latest",
"arguments": "",
"attempts": 1,
"custom_config_path": "",
"encrypted_data_bag_secret_key_path": "",
"environment": "",
"formatter": "",
"http_proxy": "",
"http_proxy_user": "",
"http_proxy_pass": "",
"no_proxy": "",
"json": {},
"node_name": "",
"provisioning_path": "",
"run_list": [],
"file_cache_path": "",
"file_backup_path": "",
"verbose_logging": false,
"enable_reporting": true,
//specific
"cookbooks_path": [],
"data_bags_path": [],
"environments_path": "",
"nodes_path": [],
"recipe_url": "",
"roles_path": [],
"synced_folder_type": ""
}, {
"type": "chef_zero",
//common
"name": "",
"binary_path": "",
"binary_env": "",
"install": true, //false, "force"
"installer_download_path": "",
"log_level": "info",
"product": "chef",
"channel": "stable",
"version": "latest",
"arguments": "",
"attempts": 1,
"custom_config_path": "",
"encrypted_data_bag_secret_key_path": "",
"environment": "",
"formatter": "",
"http_proxy": "",
"http_proxy_user": "",
"http_proxy_pass": "",
"no_proxy": "",
"json": {},
"node_name": "",
"provisioning_path": "",
"run_list": [],
"file_cache_path": "",
"file_backup_path": "",
"verbose_logging": false,
"enable_reporting": true,
//specific
"cookbooks_path": [],
"data_bags_path": [],
"environments_path": "",
"nodes_path": [],
"environment": "",
"roles_path": [],
"synced_folder_type": ""
}, {
"type": "chef_client",
//common
"name": "",
"binary_path": "",
"binary_env": "",
"install": true, //false, "force"
"installer_download_path": "",
"log_level": "info",
"product": "chef",
"channel": "stable",
"version": "latest",
"arguments": "",
"attempts": 1,
"custom_config_path": "",
"encrypted_data_bag_secret_key_path": "",
"environment": "",
"formatter": "",
"http_proxy": "",
"http_proxy_user": "",
"http_proxy_pass": "",
"no_proxy": "",
"json": {},
"node_name": "",
"provisioning_path": "",
"run_list": [],
"file_cache_path": "",
"file_backup_path": "",
"verbose_logging": false,
"enable_reporting": true,
//specific
"chef_server_url": "",
"validation_key_path": "",
"client_key_path": "",
"validation_client_name": "",
"delete_node": true,
"delete_client": true
}, {
"type": "chef_apply",
//common
"name": "",
"binary_path": "",
"binary_env": "",
"install": true, //false, "force"
"installer_download_path": "",
"log_level": "info",
"product": "chef",
"channel": "stable",
"version": "latest",
"arguments": "",
"attempts": 1,
"custom_config_path": "",
"encrypted_data_bag_secret_key_path": "",
"environment": "",
"formatter": "",
"http_proxy": "",
"http_proxy_user": "",
"http_proxy_pass": "",
"no_proxy": "",
"json": {},
"node_name": "",
"provisioning_path": "",
"run_list": [],
"file_cache_path": "",
"file_backup_path": "",
"verbose_logging": false,
"enable_reporting": true,
//specific
"recipe": "",
"upload_path": null
}, {
"type": "docker",
"name": "",
"images": [] //TODO support more functions like "build_image", "run"
}, {
"type": "puppet",
"name": "",
"binary_path": "",
"facter": {},
"hiera_config_path": "",
"manifest_file": "default.pp",
"manifests_path": "manifests",
"module_path": "",
"environment": "",
"environment_path": "",
"environment_variables": {},
"options": [],
"synced_folder_type": null,
"synced_folder_args": [],
"temp_dir": "",
"working_directory": ""
}, {
"type": "puppet_server",
"name": "",
"binary_path": "",
"client_cert_path": "",
"clietn_private_key_path": "",
"facter": {},
"options": [],
"puppet_node": null,
"puppet_server": "puppet"
}, {
"type": "salt",
"name": "",
"install_master": null,
"no_minion": false,
"install_syndic": false,
"install_type": "",
"install_args": "develop",
"always_install": false,
"bootstrap_script": "",
"bootstrap_options": "",
"version": "2015.5.2",
"minion_config": "salt/minion",
"minion_key": "salt/key/minion.key",
"minion_id": "",
"minion_pub": "salt/key/minion.pub",
"grains_config": "",
"masterless": null,
"master_config": "salt/master",
"master_key": "salt/key/master.pem",
"master_pub": "salt/key/master.pub",
"seed_master": {},
"run_highstate": null,
"run_overstate": null,
"orchestrations": [],
"colorize": false,
"log_level": "debug",
"pillars": []
}]
}
from dev.
note: this is a breaking change for vagrant config, make sure to keep it backward compatible with the previous way of config (by deprecating the prev config so that everyone who is using the preview of teracy-dev with custom config still gets teracy-dev work as normal)
from dev.
Related Issues (20)
- should add Location::Manager.add_synch for extension support
- Util.override with nil source should return the origin object
- failed to uninstall plugins HOT 2
- teracy-dev roadmap for v0.7.x HOT 3
- Should support multi language for git_sync HOT 3
- should release v0.6.0-a6
- git sync should work in multi language with all recent git versions HOT 2
- should create an extension for orphan VM prevention HOT 3
- should release v0.6.0-a7 with proper fix for git sync with different system locales HOT 1
- git sync: tag not found bug should be fixed HOT 3
- backport for v0.6.0-a8: windows: git clone '' (with the quote) trigger fatal error HOT 1
- backport for v0.6.0-b1: git sync: tag not found bug should be fixed HOT 1
- should release v0.6.0-a8
- should check to make sure teracy-dev works well with virtualbox 6.0 HOT 4
- should create extensions directory if not exist
- should update the skaffold setup + instruction to develop the docs HOT 2
- should find a way for git-sync to work with passphrase ssh key HOT 3
- should update k8s dev mode, helm chart with github actions CI/CD to migrate docs
- should fix the bug: Message: NoMethodError: undefined method `sub' for #<TeracyDev::Location::GitWarn HOT 3
- should make sure teracy-dev work well with WSL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dev.