configuration-management

Can't run Ansible in daemon-mode

我怕爱的太早我们不能终老 提交于 2019-12-11 03:07:15
问题 Can I run Ansible to manage my hosts like a daemon? For example, I sometimes change my playbooks and I don't want to run "ansible-playbook main.yml" manually. Please, don't propose crontab. There is a specific point and I can't use crontab on production server. Thank you 回答1: What you are talking about here is called pull mode . Architectually Ansible is designed to work in push mode - you push changes to server from a control machine. If you really would like to make Ansible work in pull

Integration Services Catalog folder permissions changed

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 02:45:56
问题 Question: Do any of the SQL Server systems tables in either SSISDB or MSDB contain information that would allow me to discover which users are making changes to folder permissions in the Integration Services Catalog? Background: I saw that a SQL Agent Job was failing with the following error description: Cannot access the package or the package does not exist. Verify that the package exists and that the user has permissions to it. Upon researching the issue, I found that the service account's

Ansible, the field args has an invalid value [duplicate]

纵然是瞬间 提交于 2019-12-11 01:32:36
问题 This question already has an answer here : How to use Ansible's with_item with a variable? (1 answer) Closed last year . I added a role called common to my playbook.yml, and provisioning fails with the message: TASK [common : Host is present] ************************************************ ==> cd: fatal: [localhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'unicode object' has no

Building tags using Continuous Integration

喜欢而已 提交于 2019-12-11 00:40:20
问题 How could I establish practice of continuously integrating tags instead of branches? I have following structure of tags repository directory (here is more detailed explanation of the repository structure): /tags /builds /PA /A /B /releases /AR /BR /RC /ST I would like to configure my continuous integration tool (it could be anything from CruiseControl, Hudson and Jenkins to TeamCity) to build latest tag if it has been created in either of those folders. For example, if structure has changed

Subversion - Is it possible to disable all commits and make the repository read only?

假装没事ソ 提交于 2019-12-10 13:16:52
问题 I have a subversion repository that is a mirror of another remote repository. I use svnsync to mirror the repository every week. The mirrored repository (local copy) is only there for backup. I would like to keep the mirrored repository as READ-ONLY, i.e. nobody should be able to commit any changes to this repository but they can use it for reading source files as it is faster than the remote repository. I had a look around on Google and it seems that a Hook is probably the best option. The

Configure remote rulesets with Puppet

送分小仙女□ 提交于 2019-12-10 11:29:12
问题 I'm trying to automate the Prometheus node_exporter and my Prometheus Server. For the node_exporter I've written a module to install all the needed packages, set the $::ipaddress based on facter and some more.. Now I'd like to make sure that the collected informations ( $hostname , $job_name , [...]) from the applying node are exported into the respective remote Prometheus configfile, but I want to have this step done asynchronously, so for example with a puppet agent run afterwards on the

How to recover checked out file in Clearcase?

落花浮王杯 提交于 2019-12-10 11:08:43
问题 Let's say there is a file called myfile.java. I checked it out and I was working on it. Before checking it in, I have lost my hard drive and I had to get a new hard drive. Next time that I want to check out the file, it says that I can not check out. It was already checked out in the old view which has gone. I have to mention that I am using the option "re-use development stream option". Is there anything I can do to be able to checkout the file once again? 回答1: You can completely unregister

How to read system.web section from web.config

眉间皱痕 提交于 2019-12-09 08:23:33
问题 Should be simple, but whatever I try returns null: const string key = "system.web"; var sectionTry1 = WebConfigurationManager.GetSection(key); var sectionTry2 = ConfigurationManager.GetSection(key); I'm sure I have done this before. I am using MVC if this makes a difference. 回答1: Was being an idiot - system.web is not a config section but a config group. If I change the key to an actual section, then both methods work fine. Here's the one using ConfigurationManager: const string

How can i move Clearcase dyamic/snapshot views to another host (Linux)

不问归期 提交于 2019-12-08 04:13:44
问题 i'm about to setup a new server that will be dedicated for CC views i'm wondering if there is any way to move the existing views to the new server? 回答1: In theory, yes: you can unregister a view ( cleartool untegister + cleartool rmtag -view ), and register it again on the new server. See: "Moving a view to a host with the same architecture or to a NAS device" "Moving a view to a host with a different architecture": it involves a cleartool reformatview -dump/-load in addition of the

SaltStack: how do I repeat other states with context?

拥有回忆 提交于 2019-12-08 02:22:08
问题 I created a complex state for API service, it involves git checkouts, python venv, uwsgi, nginx, etc etc. It works fine. Now I would like to turn it into a template and execute it several times per minion, with variables supplied from pillar - i.e something like. {% for apiserver in pillar.apiservers %} include apiserver_template.sls, locals: apiserver.config {% endfor %} where apiserver_template will work with context supplied to it, with apiserver.config having all config data for each API