Closed djflux closed 2 years ago
Looks like ansible group names can no longer contain a hyphen? I modified /opt/conf-meza/secret/monolith/hosts
and replaced -
with _
and that seems to resolve the error.
Now need to edit meza.py or other script to ensure we're using underscores for group names. (Very MATLAB of them ;) )
This was a bigger issue than I first thought. All references to group names in all yml files had to be replaced. I ran the following commands to replace them:
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;load-balancers-unmanaged;load_balancers_unmanaged;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;db-master;db_master;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;db-slaves;db_slaves;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;app-servers;app_servers;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;memcached-servers;memcached_servers;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;parsoid-servers;parsoid_servers;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;elastic-servers;elastic_servers;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;backup-servers;backup_servers;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;logging-servers;logging_servers;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;load-balancers-nonmeza-internal;load_balancers_nonmeza_internal;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;load-balancers-nonmeza-external;load_balancers_nonmeza_external;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;load-balancers-nonmeza;load_balancers_nonmeza;g'
find /opt/meza \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e 's;load-balancers;load_balancers;g'
Commit 488751b attempts to fix the hyphens.
UPDATED COMMENT: using the find with the prune
pieces could jack up a git repo (ask me how I know 😉 ). Those commands still don't get everything (e.g. load-balancers-nonmeza-internal), but get most things
Fixed. Commit 336c3c9 can be used to install a Demo Wiki from scratch on Rocky Linux 8.6.
Kickstart file used
lang en_US
keyboard us
timezone America/Chicago --isUtc
rootpw INSERT_YOUR_CRYPTED_PASSWORD_HERE --iscrypted
#platform x86_64
reboot
text
url --url=https://ord.mirror.rackspace.com/rocky/8/BaseOS/x86_64/os
bootloader --append="rhgb quiet crashkernel=auto"
zerombr
clearpart --all --initlabel
autopart
auth --passalgo=sha512 --useshadow
selinux --enforcing
firewall --enabled --http --ssh
skipx
firstboot --disable
%packages
@^minimal-environment
@network-tools
git
vim-enhanced
net-tools
%end
%post --nochroot --log=/mnt/sysimage/var/log/ks-post.log
cat >> /mnt/sysimage/etc/profile.d/fluxstuff.sh << EOF
alias dir='ls --color -la | more'
alias vi=vim
export PS1="[\u@\h \w]\\\\$ "
EOF
%end
Running:
sudo meza deploy monolith --list-tasks
Produces this error:
Resolve error.