Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add keepalived to Anvil #17

Merged
merged 45 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
6314099
add keepalived
SK1Y101 Jun 13, 2024
187a861
switch String to STRING
SK1Y101 Jun 13, 2024
80933d5
spell haproxy correctly
SK1Y101 Jun 13, 2024
bba1eb8
provider name?
SK1Y101 Jun 17, 2024
a3f30b4
shouldn't need .name
SK1Y101 Jun 17, 2024
bb6de59
move keepalive to juju step, not distinct terraform
SK1Y101 Jun 18, 2024
e5dac64
fix unterminated string
SK1Y101 Jun 19, 2024
03c8730
None is an allowed vip value
SK1Y101 Jun 19, 2024
98a59d2
formatting
SK1Y101 Jun 19, 2024
1f7bc82
count not counts
SK1Y101 Jun 19, 2024
d8cc0e3
try this
SK1Y101 Jun 21, 2024
93228e9
don't double set provider
SK1Y101 Jun 21, 2024
59d0fda
provider passing
SK1Y101 Jun 21, 2024
606de0d
try adding a haproxy provider?
SK1Y101 Jun 25, 2024
dae4c92
providor maybe
SK1Y101 Jun 25, 2024
7b7b647
maybe this works?
SK1Y101 Jun 25, 2024
ae926cc
try using applications instead of provider
SK1Y101 Jun 25, 2024
df493ab
correct config location
SK1Y101 Jun 25, 2024
2e298cf
try qit that
SK1Y101 Jun 26, 2024
2efc604
correct config location
SK1Y101 Jun 26, 2024
a08ca1f
use variables correctly# --------------------------------------------…
SK1Y101 Jun 26, 2024
cf66d8f
type ignore remove
SK1Y101 Jun 26, 2024
e56cfc8
integration to use the endpoints
SK1Y101 Jun 27, 2024
05ba12c
use max
SK1Y101 Jun 27, 2024
5134127
move validation
SK1Y101 Jun 27, 2024
8b1663c
default is an empty string, not None
SK1Y101 Jun 27, 2024
3d87ec0
add newlines
SK1Y101 Jun 27, 2024
ebc6113
empty vip
SK1Y101 Jun 27, 2024
5a6d056
try accessing all resources
SK1Y101 Jun 27, 2024
da6aa94
format and rebase
SK1Y101 Jun 27, 2024
cf45c55
remove wildcard
SK1Y101 Jul 1, 2024
2eaa068
update readme
SK1Y101 Jul 1, 2024
d07e2cc
readme about accepting defaults
SK1Y101 Jul 1, 2024
1e57bd7
quick readme changes
SK1Y101 Jul 1, 2024
84216b6
load previous questions from DB
SK1Y101 Jul 1, 2024
d20574d
re-add config variable
SK1Y101 Jul 2, 2024
aaa5d6e
Merge branch 'main' into add-vip
SK1Y101 Jul 3, 2024
0410006
transition to new
SK1Y101 Jul 3, 2024
be019a3
linting
SK1Y101 Jul 3, 2024
e33d8ed
more linting
SK1Y101 Jul 3, 2024
5250b97
remove extra formatting
SK1Y101 Jul 3, 2024
df0253b
use the correct config name
SK1Y101 Jul 3, 2024
ac95076
add other configuration options
SK1Y101 Jul 3, 2024
39f984a
Introduce improvements to VIP mechanism
skatsaounis Jul 8, 2024
edf1534
Merge branch 'main' into add-vip
skatsaounis Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion anvil-python/anvil/commands/haproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
from sunbeam.commands.terraform import TerraformInitStep
from sunbeam.jobs.juju import JujuHelper
from sunbeam.jobs.manifest import BaseStep
from sunbeam.jobs.questions import PromptQuestion, QuestionBank, write_answers
from sunbeam.jobs.questions import (
PromptQuestion,
QuestionBank,
load_answers,
write_answers,
)
from sunbeam.jobs.steps import (
AddMachineUnitsStep,
DeployMachineApplicationStep,
Expand Down Expand Up @@ -76,6 +81,8 @@ def has_prompts(self) -> bool:
return True

def prompt(self, console: Console | None = None) -> None:
previous_answers = load_answers(self.client, CONFIG_KEY)
skatsaounis marked this conversation as resolved.
Show resolved Hide resolved

bootstrap_bank = QuestionBank(
questions={
"virtual_ip": PromptQuestion(
skatsaounis marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -85,6 +92,7 @@ def prompt(self, console: Console | None = None) -> None:
)
},
console=console,
previous_answers=previous_answers,
)

self.variables["virtual_ip"] = bootstrap_bank.virtual_ip.ask()
Expand Down