Chef Node Objects Defined!

Chef Node Objects Defined! For the chef-client, two important aspects of nodes are groups of attributes and run-lists. An attribute is a specific piece of data about the node, such as a network interface, a file system, the number of clients a service running on a node is capable of accepting, and so on. A

(Read More…)

Understand the chefignore file

The chefignore file is used to tell knife which cookbook files in the chef-repo should be ignored when uploading data to the Chef server. The type of data that should be ignored includes swap files, version control data, build output data, and so on. . The chefignore file can be located in any subdirectory of

(Read More…)

Tags: ,

Lets Understand the Ruby programming world in 5 mins!!!

Lets Understand the Ruby programming world in 5 mins? Ruby Ruby is a dynamic, interpreted, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. The Currnet most latest stable release is Ruby 2.5. Gem – A Ruby Package A Gem is a Ruby application package

(Read More…)

How to execute grovvy script remotely on Jenkins server?

A Jenkins Admin can execute groovy scripts remotely by sending an HTTP POST request to /script/ url or /scriptText/. curl example via bash curl submitting groovy file via bash curl submitting groovy file providing username and password via bash Jenkins CLI offers the possibility to execute groovy scripts remotely using groovy command or execute groovy

(Read More…)

How to run/execute groovy script in Jenkins?

Here are the List of way using you can apply grovy code in Jenkins Method -1: Groovy plugin This plugin adds the ability to directly execute Groovy code. More info – https://wiki.jenkins.io/display/JENKINS/Groovy+plugin Method -2: Jenkins script console The inbuilt script console is a very useful and powerful Jenkins extension and ideally suits certain types of

(Read More…)

Database of Groovy Script for Jenkins Automation

Here are the list of Groovy Script which can be used in Jenkins to automate the JOBs and CI process. Please add your list in the comment sections as well. Main Source –  https://github.com/scmgalaxy/jenkins-groovy-script-example https://github.com/cloudbees/jenkins-scripts https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console https://pghalliday.com/jenkins/groovy/sonar/chef/configuration/management/2014/09/21/some-useful- jenkins-groovy-scripts.html https://github.com/cloudbees/jenkins-scripts https://github.com/jenkinsci/jenkins-scripts https://gist.github.com/dnozay/e7afcf7a7dd8f73a4e05 https://github.com/samrocketman/jenkins-bootstrap-shared https://github.com/samrocketman/jenkins-script-console-scripts Example Groovy Script  Activate Chuck Norris Plugin — This script activates Chuck Norris plugin for

(Read More…)

Tags: ,

Jenkins Architecture Explained!!!

Jenkins is continuous integration tools which help to integrate other tools to automate the software development activity and repetitive tasks. Jenkins has 2 releases. One, Community version which open source and free and another one is Jenkins Enterprise which is from Cloud bees for enterprise. Jenkins is extremely powerful with vast amount of plug-in supported.

(Read More…)

Secure Tunnels to localhost using ngrok

Secure Tunnels to localhost using ngrok ngrok is a free tool that allows you to expose a web server running on your local machine to the internet. It includes additional functionality that makes it easy to install and manage itself as a native operating system service on Windows, OS X and Linux. It is is

(Read More…)

Tags: ,

run_list and env_run_list explanined in chef role

run-list A run-list defines all of the information necessary for Chef to configure a node into the desired state. A run-list may include roles and/or recipes. A run-list must be in one of the following formats: fully qualified, cookbook, or default. Both roles and recipes must be in quotes, for example: env_run_list When you specify

(Read More…)

How to run chef-client in why-run mode aka “no-operation”

why-run mode is a way to see what the chef-client would have configured, had an actual chef-client run occurred. This approach is similar to the concept of “no-operation” (or “no-op”): decide what should be done, but then don’t actually do anything until it’s done right. Run the executable in why-run mode, which is a type

(Read More…)

© Tutorials
CyberChimps