Skip to content

Commit 121d319

Browse files
committed
playing with puppet_hostname
1 parent 84e68e7 commit 121d319

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

deploy/vagrant/modules/buttonmen/templates/create_rds_database.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ "$?" = "0" ]; then
1515
else
1616
echo "Creating <%= buttonmen_db1_name %>"
1717
echo "CREATE DATABASE <%= buttonmen_db1_name %>" | mysql ${MYSQL_ARGS}
18-
echo "GRANT ALL ON <%= buttonmen_db1_name %>.* TO <%= buttonmen_db1_user %>@'<%= puppet_hostname %>' IDENTIFIED BY '<%= buttonmen_db1_pass %>'" | mysql ${MYSQL_ARGS}
18+
echo "GRANT ALL ON <%= buttonmen_db1_name %>.* TO <%= buttonmen_db1_user %>@'<%= @puppet_hostname %>' IDENTIFIED BY '<%= buttonmen_db1_pass %>'" | mysql ${MYSQL_ARGS}
1919

2020
echo "Populating <%= buttonmen_db1_name %>"
2121
cd /buttonmen/deploy/database

deploy/vagrant/modules/postfix/templates/main.cf.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
1919
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
2020
# information on enabling SSL in the smtp client.
2121

22-
myhostname = <%= puppet_hostname %>
22+
myhostname = <%= @puppet_hostname %>
2323
mydomain = buttonweavers.com
2424
alias_maps = hash:/etc/aliases
2525
alias_database = hash:/etc/aliases
26-
myorigin = <%= puppet_hostname %>
26+
myorigin = <%= @puppet_hostname %>
2727
masquerade_domains = $mydomain
28-
mydestination = <%= puppet_hostname %>, localhost.buttonweavers.com, localhost
28+
mydestination = <%= @puppet_hostname %>, localhost.buttonweavers.com, localhost
2929
relayhost =
3030
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
3131
mailbox_size_limit = 0

0 commit comments

Comments
 (0)