厨师单人包装

chef-solo-cup的Python项目详细描述


厨师独奏杯

Chef Solo Cup是Chef Solo的包装,用于引导/更新AWS实例

安装

使用pip:

来自github:

pip install git+git://github.com/josegonzalez/chef-solo-cup.git#egg=beaver

来自PYPI:

pip install chef-solo-cup

用法

cli用法如下:

usage: chef-solo-cup [-h] [-a ASG_DNA_PATH] [-b BLACKLIST_RULE] [-c CMD]
                     [-C CONFIG_PATH] [-d DNA_PATTERNS [DNA_PATTERNS ...]]
                     [-D] [-e EXCLUDE [EXCLUDE ...]]
                     [-E RSYNC_EXCLUSIONS [RSYNC_EXCLUSIONS ...]]
                     [-i IP_ADDRESS] [-k KEY_FILENAME]
                     [-l {debug,info,warn,error,fatal}] [-L LOG_PATH]
                     [-o OUTPUT] [-P] [-p [PROVIDERS [PROVIDERS ...]]]
                     [-q QUANTITY] [-r [REGIONS [REGIONS ...]]]
                     [-R REPOSITORY] [-s [SERVICES [SERVICES ...]]]
                     [-S {git,rsync}] [-t TAGS [TAGS ...]] [-u USER] [-v]
                     [--api-password API_PASSWORD] [--api-url API_URL]
                     [--api-username API_USERNAME] [--dry-run]
                     [--chef-version CHEF_VERSION]
                     [--ohai-version OHAI_VERSION]
                     [--chef-file-dest CHEF_FILE_DEST]
                     [--aws-access-key-id AWS_ACCESS_KEY_ID]
                     [--aws-secret-access-key AWS_SECRET_ACCESS_KEY]
                     [--use-private-ips]
                     [--use-alternate-databag USE_ALTERNATE_DATABAG]
                     [{bootstrap,chef,clean,default,gem,inspect,ruby,run,sync,sudo,test,update}]

Chef-solo-cup, a chef-solo wrapper

positional arguments:
  {bootstrap,chef,clean,default,gem,inspect,ruby,run,sync,sudo,test,update}
                        command to run

optional arguments:
  -h, --help            show this help message and exit
  -a ASG_DNA_PATH, --asg-dna-path ASG_DNA_PATH
                        Path to asg dna files (relative to repo base)
  -b BLACKLIST_RULE, --blacklist-rule BLACKLIST_RULE
                        pattern to use to blacklist hosts
  -c CMD, --command CMD
                        command to run
  -C CONFIG_PATH, --config-path CONFIG_PATH
                        relative path from chef file destination to solo
                        config file
  -d DNA_PATTERNS [DNA_PATTERNS ...], --dna-patterns DNA_PATTERNS [DNA_PATTERNS ...]
                        space-separated list of patterns to match against dna
                        filenames
  -D, --debug           enable debug mode
  -e EXCLUDE [EXCLUDE ...], --exclude EXCLUDE [EXCLUDE ...]
                        A regex to exclude hosts by
  -E RSYNC_EXCLUSIONS [RSYNC_EXCLUSIONS ...], --rsync-exclusions RSYNC_EXCLUSIONS [RSYNC_EXCLUSIONS ...]
                        space-separated list of files to exclude in rsync
  -i IP_ADDRESS, --ip-address IP_ADDRESS
                        The ip address to connect to
  -k KEY_FILENAME, --key-filename KEY_FILENAME
                        full path to key filename (pem key)
  -l {debug,info,warn,error,fatal}, --loglevel {debug,info,warn,error,fatal}
                        The chef log level to use
  -L LOG_PATH, --log-path LOG_PATH
                        The path to write logs to
  -o OUTPUT, --output OUTPUT
                        file to pipe output to (in addition to stdout)
  -P, --parallel        whether to run commands in parallel
  -p [PROVIDERS [PROVIDERS ...]], --providers [PROVIDERS [PROVIDERS ...]]
                        space-separated list of providers
  -q QUANTITY, --quantity QUANTITY
                        The number of nodes to provision
  -r [REGIONS [REGIONS ...]], --regions [REGIONS [REGIONS ...]]
                        space-separated list of regions
  -R REPOSITORY, --repository REPOSITORY
                        repository to use when cloning instead of using rsync
  -s [SERVICES [SERVICES ...]], --services [SERVICES [SERVICES ...]]
                        space-separated list of services
  -S {git,rsync}, --sync {git,rsync}
                        method to sync chef with
  -t TAGS [TAGS ...], --tags TAGS [TAGS ...]
                        tags to filter instances by
  -u USER, --user USER  user to run commands as
  -v, --version         Print version and exit
  --api-password API_PASSWORD
                        basic auth password for api
  --api-url API_URL     backing url for api
  --api-username API_USERNAME
                        basic auth username for api
  --dry-run             perform a dry run of all commands
  --chef-version CHEF_VERSION
                        chef version to install
  --ohai-version OHAI_VERSION
                        ohai version to install
  --chef-file-dest CHEF_FILE_DEST
                        chef file destination on disk
  --aws-access-key-id AWS_ACCESS_KEY_ID
                        AWS Access Key
  --aws-secret-access-key AWS_SECRET_ACCESS_KEY
                        AWS Secret Key
  --use-private-ips     Connect to the instances via the private ip address
                        instead of the public
  --use-alternate-databag USE_ALTERNATE_DATABAG
                        Use alternate databag instead of one defined by ASG
                        name

Chef Solo Cup is pwnage

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用唯一的按钮标签单击按钮   代码生成如何使用Java codeModel为数组的特定索引赋值   java如何批量执行Camel SQL插入   java iText 7将ltv添加到现有签名   内存管理Java应用程序突然停止几天后(810)   带MySQL的java注册表单JavaFX在intellij中失败   如何使用eclipse为windows azure java项目启用远程调试   一种通用的java输入输出设计模式   java Android XML(RSS)忽略引号(“”)   java帮助:安卓中的8 X 10 2维按钮数组   java启动Android项目   JWrapper构建java应用程序   java如何在Android应用程序中设置基于日期/时间的默认页面加载?   java循环程序在完成后返回到起点   java Hibernate:更好的整体类还是多类映射?   回溯数独解算器的递归问题[Java]   java查找类用法   java如何在SpringWebFlow中将多个模型绑定到一个视图?