chef-server-ctl
-
Always check the latest documentation: https://docs.chef.io/ctl_chef_server.html
chef-server-ctl: command (subcommand) General Commands: backup Backup the Chef Server cleanse Delete *all* Chef Server data, and start from scratch. cleanup Perform post-upgrade removal of now-obsolete data, configuration files, logs, etc. Add the '--no-op' flag to see what *would* be removed. gather-logs Create a tarball of recent logs and system information for Chef Support help Print this help message. install Install addon package by name, with optional --path parameter indicating directory containing packages rebuild-migration-state Attempt to rebuild the migration-state file before upgrade. reconfigure Reconfigure the application. reindex Reindex all server data for a given organization restore Restore the Chef Server from backup show-config Show the configuration that would be generated by reconfigure. test Run the API test suite against localhost. uninstall Kill all processes and uninstall the process supervisor (data will be preserved). upgrade Upgrade your private chef installation. Service Management Commands: graceful-kill Attempt a graceful stop, then SIGKILL the entire process group. hup Send the services a HUP. int Send the services an INT. kill Send the services a KILL. once Start the services if they are down. Do not restart them if they stop. restart Stop the services if they are running, then start them again. service-list List all the services (enabled services appear with a *.) start Start services if they are down, and restart them if they stop. status Show the status of all the services. stop Stop the services, and do not restart them. tail Watch the service logs of all enabled services. term Send the services a TERM. usr1 Send the services a USR1. usr2 Send the services a USR2. Debug Tools Commands: filtered-dump Generate a filtered dump of indexable Chef Objects for all organizations. Top-level data is captured; only object name is captured from object json Server Admins Commands: grant-server-admin-permissions Grant a user the ability to create other users by added the user to the server-admins group. list-server-admins List users that have server-admins permissions. remove-server-admin-permissions Remove all special permission granted to a user from being a server-admin. Organization And User Management Commands: org-create Create an organization in the chef server. org-delete Delete an organization in the chef server. org-list List all organizations in the chef server. org-show Show an organization in the chef server. org-user-add Associate a user with an organization. org-user-remove Dissociate a user with an organization. password Set a user's password or System Recovery Password. user-create Create a user in the chef server. user-delete Delete a user in the chef server. user-edit Edit a user in the chef server. user-list List all users in the chef server. user-show Show a user in the chef server. Open Source Upgrade Commands: chef12-upgrade-data-transform Transfrom data from an open source Chef 11 server for upload to an Chef 12 server. chef12-upgrade-download Download data from a open source Chef 11 server. chef12-upgrade-upload Upload transformed open source Chef 11 data to a Chef 12 server. Secrets Management Commands: oc-id-show-app Show configuration for oc-id applications remove-secret Remove secret NAME of GROUP require-credential-rotation Disable the Chef Server and require credential rotation rotate-all-credentials Rotate all Chef Server service credentials rotate-credentials Rotate Chef Server credentials for a given service rotate-shared-secrets Rotate the Chef Server shared secrets and all service credentials set-actions-password Add or change the rabbitmq actions queue password set-db-superuser-password Add or change DB superuser password set-secret Set or change secret NAME of GROUP show-secret Show the value of the given secret in the secret store show-service-credentials Show the service credentials Cleanup Commands: cleanup-bifrost Cleanup orphaned bifrost objects. Database Commands: psql Launches an interactive psql session with the service database you name. Add '--write' for write access and '--options <OPTIONS>' to specify psql options. High Availability Commands: backup-recover Set this server to HA backup state, ignoring VRRP ha-status Show the status of high availability services. master-recover Set this server to HA master state, ignoring VRRP. Key Rotation Commands: add-client-key Create a new client key add-user-key Create a new user key delete-client-key Delete a key delete-user-key Delete a key list-client-keys List keys for a client list-user-keys List keys for a user
© Lightnetics 2024