chef

How are Windows services created using Chef?

筅森魡賤 提交于 2019-12-13 22:15:40
问题 I have a jar file I'd like to run as a service on Windows, but I don't believe creating a Windows service is supported in Chef: CHEF-3865 How are Chef users adding new services to Windows machines they manage? Powershell? My jar file is for the Jenkins Swarm Plugin, I am dynamically creating new swarm slaves using Chef. 回答1: I was able to get this working using WinSW w/ a new Chef Cookbook. Cookbook Steps: Download jar to node. Download winsw wrapper app to node. Download winsw config file to

Unable Bootstrap chef client on windows 7

懵懂的女人 提交于 2019-12-13 17:28:45
问题 Following are the steps I have performed till now, Installed chef-server and configured v11.0 on Ubuntu 10.04 LTS Installed chefDK 0.17 on windows 7 Fetched certificate on workstation as well as on node from chef server I have also updated hosts files on every machine Now , while bootstrapping from workstation to install and register chef node on chef server I'm getting the following error ERROR: Failed to authenticate to https://EVALCHEFLIN01.ecsemea.com:443 as ECSAdm in with key C:/Users

2019年必学的DevOps流行工具

这一生的挚爱 提交于 2019-12-13 13:16:43
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> DevOps是一种利用云创新、自动化和制度化来从根本上加速传统编程的改进模式。像Git、Docker、Selenium、Jenkins、Ansible等都属于2019年必学的DevOps工具。 Git Git是一种分布式版本管制系统,没有中央服务器,每个人的电脑就是一个完整的版本库。工作的时候不用联网,因为版本都在自己的电脑上。协同方法是这样的:比如说自己在电脑上改了文件A,其它人也在电脑上改了文件A,这时候,你们之间只需要把各自的修改推送给对方,这样就可以互相看到对方的修改了,Git是免费的,开源的。 Docker Docker是一个开源的应用容器引擎,让开发都可以打包他们的应用以及依赖包到一个可移植的镜像中,然后发布到任何流行的linux或windos机器上。也可以实现虚拟化,容器是完全使用沙箱机制的,相互之间不会有任何的接口。Docker使用客户端到服务端,也就是C/S架构模式,使用远程API来管理和创建Docker容器。Docker容器通过Docker镜像来创建,容器与镜像的关系类似于面向对象编程中的对象与类。 Selenium Selenium是一种开源的基于Web UI的自动化测试架构。Selenium是用于测试Web应用程序用户界面的常用框架。它是一款用于运行端到端功能测试的超强工具

Google Translate service account 403 dailyLimitExceeded error

空扰寡人 提交于 2019-12-13 07:58:57
问题 I'm configuring a Node.JS server to use the Google Translate API. So far, I've done the following: Set up a Google account Add credit card and enable billing Create a project Enable Google Translate API for project Create two service accounts for project* and save the JSON key files *One service account for local development and one account for deployed application. Sample code (Typescript): import * as Translate from '@google-cloud/translate'; export async function translate(text: string, to

Chef solo can't find cookbook during kitchen test run

夙愿已清 提交于 2019-12-13 07:56:21
问题 I'm trying to add a Test Kitchen for a bunch of cookbooks that we use to provision a Jenkins CI instance. We use Berkshelf to manage dependencies. The file structure is as follows: | .gitignore | .kitchen.yml | Berksfile | Berksfile.lock | bootstrap.sh | chefignore | metadata.rb | provision.sh | readme.md | solo.json | solo.rb | tree.txt | VERSION | +---.kitchen | | default-ubuntu-1404.yml | | | +---kitchen-vagrant | | \---kitchen-chef-jenkins-default-ubuntu-1404 | | | Vagrantfile | | | | | \

Chef Vault user creation

醉酒当歌 提交于 2019-12-13 07:29:17
问题 Is there a way to override chef-vault from creating users alphabetically? In order words, if i have a user alf,bob,cain and dave in my vault, is it possible to have user cain get created before alf? 回答1: The admins of a vault are always displayed as a sorted list: $ knife vault show secrets app1 -p admins admins: alf bob cain dave id: app1 .. .. But why should that matter functionally? When accessing the vault each admin user or chef node will be authenticating once, using their private key.

How to obtain node inventory for rundeck from chef

可紊 提交于 2019-12-13 07:25:48
问题 The workflow automation tool rundeck sources structured text files to create its inventory of nodes. But if you use chef as your source of truth of your server/node inventory, its undesirable to have to create these flat files just for rundeck to reference. How can rundeck obtain this information dynamically from a chef server? 回答1: chef-rundeck is a sinatra app (ruby) that interfaces with a chef server and exposes the node inventory data through a REST API in XML format. https://github.com

Enterprise chef workstation

天大地大妈咪最大 提交于 2019-12-13 06:49:28
问题 I'm trying to configure my workstation with trial verison of enterprise chef. The validator and client keys are in place i.e. in the /chef-repo/.chef directory. But when I run knife client list , it shows me the following error. c:\chef-repo>knife client list ERROR: The object you are looking for could not be found Response: <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>ngx_openresty/1.4.3.6</center> </body> </html>

How to run chef-client vagrant provisioner from custom non-root user?

谁说胖子不能爱 提交于 2019-12-13 06:27:11
问题 I wonder is there a way to set user in vagrant configuration, so that box will be provisioned from non-root account? The thing is that I want to run chef-client on boxes as specific user (deployer), and not root, but for that I should run provisioner and create this user first, and this provisioner is created under root user. As I understand, the one solution is to run provisioning for create deployer user, and then change all chef-related files and directories on box to be owned by deployer

How create a template to my recipe in CHEF for two different configuration files?

霸气de小男生 提交于 2019-12-13 06:08:50
问题 I have two different configuration files, to Ganglia Monitoring daemon, gmond . The first (this configuration file came with ganglia-gmond-3.17, from rpmforge package): /* This configuration is as close to 2.5.x default behavior as possible The values closely match ./gmond/metric.h definitions in 2.5.x */ globals { daemonize = yes setuid = yes user = ganglia debug_level = 0 max_udp_msg_len = 1472 mute = no deaf = yes allow_extra_data = yes host_dmax = 86400 /*secs */ cleanup_threshold = 300 /