Tag Info

New answers tagged

0

You need two levels of iteration. .iteritems() returns the key and the values (items) for that key. Your first iteration will give you access to option names and versions. Your second iteration will give you the display_name. {% for option, versions in salt['pillar.get']('repo', {}).iteritems() %} {% for version, info in versions.iteritems() %} {{ ...


0

The correct way is without quotes: Framed-IP-Address := `/usr/bin/python /path/python-script -m %{Calling-Station-Id}` In my examples above, I had quotes around %{Calling-Station-Id}.


1

Can I fix this at a system level, or is this something going wrong with each individual process? It is difficult to say because its unknown what is happening at the protocol level. Basically the read(2) will block indefinitely providing:- The TCP connection remains open. You expect at least 1 byte of data to arrive. The sender is not ready to send you ...


0

Building your own Python back didn't work for me. This works: (note this is for a Centos 6x host, which now uses Python2.6, but it's the same thing) wget http://mirror.centos.org/centos/6/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch wget []://mirror.centos.org/centos/6/os/x86_64/Packages/python-devel-2.6.6-51.el6.x86_64.rpm wget ...


0

You can fix this UnicodeDecodeError by forcing pip use the default the default localization settings LC_ALL=C pip install MySQL-python


1

Standard builds of Apache don't tend to support running the httpd deamon as root. Typically (for RHEL and CentOS anyway) it runs under the apache account. What you could do, if you're wanting to run your scripts from PHP as a root user, it add apache to the sudoers file. This will allow the apache account to impersonate the root user.


1

I think that the answer is given in the article below. https://news.ycombinator.com/item?id=2036661 For example, let's consider this thought experiment: Someone here mentioned Mongrel2 getting 4000 req/sec. Let's replace the name "Mongrel2" with "Server A" because this thought experiment is not limited to Mongrel2, but all servers. I assume he's ...


1

You could just add a sock file to the command line: /usr/local/bin/uwsgi --virtualenv $ENV --module project --chdir $APP --master -s myapp.sock


1

There is a site-package available for connecting Django to Microsoft SQL Server. Check this out: http://django-mssql.readthedocs.org/en/latest/. You would then modify your DATABASE settings to something like this: DATABASES = { 'default': { 'NAME': 'databasename', 'ENGINE': 'sqlserver_ado', 'HOST': ...


0

After turning on WSGIDaemonProcess and switching to separate daemon processes this issue has not appeared anymore, as recommended in the linked question.


0

I was looking at your code, and I think this line creates two pointers to the same dictionary: old_members = new_members = dict() This would cause the ldif object to be equal to [] when you run this line: ldif = modlist.modifyModlist(old_members,new_members)


0

The example pillar file is here: https://github.com/saltstack-formulas/apache-formula/blob/master/pillar.example I'd suggest using 2 spaces per indentation level and make sure they line up.


0

I had the same problem, and I guess this is caused by the virtualenv parameter, when I changed the virtualenv to /, everything is OK.



Top 50 recent answers are included