Skip to content

Commit

Permalink
Craigs-MacBook-Pro.local
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Jan 17, 2024
1 parent 5bc0063 commit 6c6abe1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cfengine-ci/cfengine-ci-buildhost.cf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ bundle agent cfengine_ci_buildhost
classes:
debian_11::
"have_pip2" expression => fileexists("/usr/local/bin/pip");
ubuntu_16::
"have_i386_architecture" expression => strcmp(execresult("${paths.dpkg} --print-foreign-architectures"), "i386");

files:
debian_9::
Expand All @@ -57,9 +59,11 @@ bundle agent cfengine_ci_buildhost
debian_11.!have_pip2::
"wget https://bootstrap.pypa.io/pip/2.7/get-pip.py -O get-pip.py && python2 get-pip.py && pip install psycopg2-binary"
contain => in_shell;
ubuntu_16:: # mingw host
ubuntu_16.!have_i386_architecture:: # mingw build host
"${paths.dpkg} --add-architecture i386";
# TODO WHY ,,,,
ubuntu:: # hack for aws ubuntu hosts
"${paths.sed} -ri 's/localhost //' /etc/hosts";
# TODO test in AWS both of these hacks to know how to detect and promise
"/usr/bin/hostnamectl set-hostname localhost.localdomain";
}

0 comments on commit 6c6abe1

Please sign in to comment.