March 2017
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

March 2017
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

for loops in Chef

for config in [ “contacts.cfg”, “contactgroups.cfg” ] do remote_file “/etc/nagios3/#{config}” do source “#{config}” owner “root” group “root” mode 0644 notifies :restart, resources(:service => “nagios”), :delayed end end Write it in the order you want it to run

Chef executes resources in the order they appear in a recipe. Coming to Chef from Puppet, I found […]

BERKSHELF

BERKSHELF

Manage a Cookbook or an Application’s Cookbook dependencies

$ gem install berkshelf Successfully installed berkshelf-2.0.0 1 gem installed

Specify your dependencies in a Berksfile in your cookbook’s root

site :opscode cookbook ‘mysql’ cookbook ‘nginx’, ‘~> 0.101.5’

Install the cookbooks you specified in the Berksfile and their dependencies

$ berks install

Add the […]

Add a Red Hat Enterprise Linux 6 system to Microsoft Active Directory

Add a Red Hat Enterprise Linux 6 system to Microsoft Active Directory

UPDATE!! .. This article also works perfectly on Windows 2012 Server as well as Windows Server 2008. The process is exactly the same.

I’ve had countless numbers of people ask me over the years how to add a Linux system to Active Directory.

[…]

chef beginner

INSPEC.IO user ‘test’ do comment ‘test user’ uid ’89’ gid ’89’ home ‘/home/random’ shell ‘/bin/bash’ action :create password ‘$1$JJsvHslasdfjVEroftprNn4JHtDi’ end user ‘test’ do comment ‘test user’ uid ’89’ gid ’89’ home ‘/home/test’ shell ‘/bin/bash’ action :create password ‘$1$/IoJI4pW$rVC197lCpPyDdkD7RxiRG/’ end user ‘test’ do comment ‘test user’ uid ’89’ gid ’89’ home ‘/home/test’ shell ‘/bin/bash’ action :modify […]

DLQ handler rules MQ

The DLQ handler rules table The DLQ handler rules table defines how the DLQ handler is to process messages that arrive on the DLQ. There are two types of entry in a rules table: ?The first entry in the table, which is optional, contains control data. ?All other entries in the table are rules for […]

Tcserver password encoding and decoding

 

Tc Server 3.2.0 introduced a new command for encoding passwords

 

./tcruntime-admin.sh encode mypassword passkey

 

Please, take a look at following link for more information

 

http://tcserver.docs.pivotal.io/docs-tcserver/topics/manual.html#obfusc

 

The old style can still be used but a new property is needed and the jasypt can be left off the classpath as they are […]

Windows has a built-in function to do time synchronisation 2012 r2

Windows has a built-in function to do time synchronisation 2012 r2

Windows has a built-in function to do time synchronisation. And by default it gets the time from time.windows.com. There is no need to use a third-party application.

You can (but you should not need to) change the settings by right-clicking the clock in the […]

Use tar + pigz + ssh to achieve efficient transmission of large data

Use tar + pigz + ssh to achieve efficient transmission of large data

Before we copy large data when the host, such as to copy more than 100GB of mysql raw data, we usually practice as follows:

Package the tar.gz file at the source Using scp or rsync copy to the target host Unzip the […]

Installation and configuration of the Linux NFS server CENTOS and Rhel 6.8

Installation and configuration of the Linux NFS server

First, the NFS service profile

NFS is the Network File System. The main function is through the network so that different servers can share files or directories. NFS client is usually the application server (such as web, load balancing, etc.), you can mount the NFS server-side shared […]

WebSphere MQ: Starting / stopping tracing – strmqtrc, endmqtrc

WebSphere MQ: Starting / stopping tracing – strmqtrc, endmqtrc

Use the WebSphere MQ strmqtrc and endmqtrc commands to check the trace file acquisition operation. In addition, the previous article is here. References are listed at the end of the article.

Start MQ trace

Start with the strmqtrc command. (Specify target queue manager with option -m)

[…]