This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir /store/firewall | |
# Copy the service.xml firewall rules to a central storage | |
# so they can survive reboot | |
cp /etc/vmware/firewall/service.xml /store/firewall | |
# Remove end tag so rule addition works as expected | |
sed -i "s/<\/ConfigRoot>//" /store/firewall/service.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Cassandra (systemd) | |
After=network.target | |
[Service] | |
User=cassandra | |
Environment="cassandra_home=/var/lib/cassandra" | |
LimitNPROC=32768 | |
LimitMEMLOCK=infinity | |
LimitAS=infinity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION change_tz() RETURNS integer AS $$ | |
DECLARE | |
query varchar; | |
result integer := 0; | |
rel RECORD; | |
col RECORD; | |
BEGIN | |
FOR rel IN SELECT DISTINCT table_name FROM information_schema.columns WHERE table_schema = 'public' AND data_type = 'timestamp without time zone' AND table_name not like 'databasechangelog%' LOOP | |
query := 'ALTER TABLE ' || quote_ident(rel.table_name) || ' SET WITHOUT CLUSTER'; -- NOOP, makes combining easier |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JPoschma@jposchma-nb2:~/devel/lcs/ops/kubespray$ ansible-playbook -i lmc-kube/inventory upgrade-cluster.yml -u root | |
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future | |
release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. | |
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in | |
a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. | |
PLAY [localhost] ******************************************************************************************************************************************************************************************* | |