Sponsored Content
Top Forums Shell Programming and Scripting Script to update rsyslog.conf and auditd.conf Post 302997776 by stomp on Friday 19th of May 2017 08:42:36 AM
Old 05-19-2017
An (Automation-)Tool-independent script won't likely exist because those scripts are the main task of an automation tool. So those scripts are always tool-specific, if you want to take the advantage of using those tools.

If you do not use the specific features of your automation tool you'll effectively end up writing your own.

The normal way in Chef is to use the file or cookbookfile Resource, which simply just replaces files with fixed content or based templates, how you wish them to be and gives you possibilities to define, what is done when and if changes are made(e. g. restart special services). Pretty basic stuff. A good automation suites enables you to define your actions from a general default with use-case groups and deviations down to groups and single special cases.

Do you have an automation tool already in production? If that is so, I suggest to use it. Your automation tool should have been chosen to support all devices/servers you are running within your organization.

In general testing is badly needed for automation which only makes sense, if you have a lot of similar or identical setups. If not you have very much work with testing for every used platform.

So the first questions would be:
  • Are automation tools already used?
  • If yes, is that tool suited to your task(probably yes)?
  • If not should you decide to integrate such a tool in your organization? (Quite a different sized task)

Last edited by stomp; 05-19-2017 at 09:51 AM..
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell/Perl Script to edit dhcpd.conf

Hi, I need to get a script together to edit the dhcp service configuration file dhcpd.conf. Mac addresses are defined in classes ex. class "HOST1" { match if substring (hardware, 1,18)=00:11:11:FF:FF:FF;} class "HOST2" ... class "HOST3" ... ... followed by allow or deny statements:... (4 Replies)
Discussion started by: sahilb
4 Replies

2. Solaris

Script for turning processes in etc/inetd.conf on and off

Anyone have a perl script that can be run via a web browser to turn ftp or telnet on and off in etc/inetd.conf ? Believe it or not but I ride a motorcycle a lot in the summer and carry a laptop in my saddlebags to connect from almost anywhere via Verizon alongside the highway. However, have too... (0 Replies)
Discussion started by: thomi39
0 Replies

3. UNIX for Advanced & Expert Users

Configuring snmpd.conf and snmptrapd.conf

HI, I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP) for receiving TRAPS in my networks. I am using RHEL4.0 OS. Please tell me How I can configure above two files in a proper way and at an advanced level. Especially I am getting... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies

4. Red Hat

SD.conf and LPFC.conf

What would be Redhat RHEL 4.0 equivalent for Solaris sd.conf and lpfc.conf? What are the files called and where are the files located? (1 Reply)
Discussion started by: soupbone38
1 Replies

5. Solaris

basic question on sd.conf and lpc.conf file

Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies

6. Shell Programming and Scripting

Change values in .conf file with a script

This is my first time posting here...so be gentle. Suppose I have a test.conf file that contains a value such as a IP. I would like to be able to use the Dialog Utility in Linux to allow me to enter the new IP in a Dialog form...and the results get saved into the test.conf file in the place... (4 Replies)
Discussion started by: calahanp
4 Replies

7. Shell Programming and Scripting

Shell Script to check dhcp conf file

Hi, I have to prepare a script to check the dhcp conf file. The script has to check for a specific parameter called circuit ID. If the Circuit ID is unique it should show the output that it is unique and if it is duplicate it should show that the Circuit ID is duplicate. I have prepared the... (4 Replies)
Discussion started by: Crazy_Nix
4 Replies

8. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies
Gtk2::ImageView::Tool(3pm)				User Contributed Perl Documentation				Gtk2::ImageView::Tool(3pm)

NAME
Gtk2::ImageView::Tool - Interface for objects capable of being used as tools by Gtk2::ImageView DESCRIPTION
Gtk2::ImageView::Tool is an interface that defines how Gtk2::ImageView interacts with objects that acts as tools. Gtk2::ImageView delegates many of its most important tasks (such as drawing) to its tool which carries out all the hard work. The Gtk2::ImageView package comes with two tools; Gtk2::ImageView::Tool::Dragger and Gtk2::ImageView::Tool::Selector, but by implementing your own tool it is possible to extend Gtk2::ImageView to do stuff its author didn't imagine. Gtk2::ImageView uses Gtk2::ImageView::Tool::Dragger by default, as that tool is he most generally useful one. However, it is trivial to make it use another tool. my $view = Gtk2::ImageView->new; my $tool = Gtk2::ImageView::Tool::Selector ($view); $view->set_tool ($tool); Using the above code makes the view use the selector tool instead of the default dragger tool. HIERARCHY
Glib::Interface +----Gtk2::ImageView::Tool METHODS
boolean = $tool->button_press ($ev) o $ev (Gtk2::Gdk::Event) boolean = $tool->button_release ($ev) o $ev (Gtk2::Gdk::Event) cursor = $tool->cursor_at_point ($x, $y) o $x (integer) o $y (integer) Returns the cursor to display at the given coordinates. boolean = $tool->motion_notify ($ev) o $ev (Gtk2::Gdk::Event) $tool->paint_image ($opts, $drawable) o $opts (Gtk2::Gdk::Pixbuf::Draw::Opts) o $drawable (Gtk2::Gdk::Drawable) Called whenever the image view decides that any part of the image it shows needs to be redrawn. $tool->pixbuf_changed ($reset_fit, $rect) o $reset_fit (boolean) o $rect (Gtk2::Gdk::Rectangle) Indicate to the tool that either a part of, or the whole pixbuf that the image view shows has changed. This method is called by the view whenever its pixbuf or its tool changes. That is, when any of the following methods are used: Gtk2::ImageView::set_pixbuf() Gtk2::ImageView::set_tool() Gtk2::ImageView::damage_pixels() If the reset_fit parameter is TRUE, it means that a new pixbuf has been loaded into the view. tool : the tool reset_fit : whether the view is resetting its fit mode or not rect : rectangle containing the changed area or NULL SEE ALSO
Gtk2::ImageView, Glib::Interface COPYRIGHT
Copyright (C) 2007 by Jeffrey Ratcliffe. This software is licensed under the GPL-3; see Gtk2::ImageView for a full notice. perl v5.14.2 2011-11-16 Gtk2::ImageView::Tool(3pm)
All times are GMT -4. The time now is 06:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy