Add the missing kredits-github::nginx recipe for barnard #53
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "bugfix/35-kredits-github_nginx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This was causing the firewall rules for ports 80 and 443 to be deleted
Confirmed to work on barnard, can be merged
Refs #35
IIRC I designed the cookbook intentionally so that only one recipe is needed. Did you change something about that before/when merging?
By the way, the title is wrong. This has nothing to do with kredits-web.
Yes, the design couldn't work, the nginx recipe was running before deploying the app, and the nodejs Systemd unit depended on nginx (
fabbe398a2
). I found my comments, they were athttps://gitea.kosmos.org/kosmos/chef/pulls/37/files#issuecomment-303
andhttps://gitea.kosmos.org/kosmos/chef/pulls/37/files#issuecomment-304
(Gitea's parsing fucks these up, so I turned them into code snippets...) Looking at it again I'm changing the run list of barnard to use the role I createdIt has everything to do with kredits-web, since it's the only recipe on barnard that depends on nginx and includes the firewall rules for it defined in
kosmos-nginx::default
That doesn't make sense. It's exactly what I ran to successfully configure everything on barnard. It worked just fine before you changed it, as proven by the GitHub app having worked since the day I finished the setup.
kredits-web
is a client-side JS app running on 5apps Deploy. This is a cookbook that configureskredits-github
, a node.js app running on a DO box.Add the missing kredits-web::nginx recipe for barnardto Add the missing kredits-github::nginx recipe for barnardGot it, the kredits-web/github mixup was a brainfart on my end. I fixed the title, thanks
Re: the cookbook, I took another look and I was wrong, the issue was actually the Let's Encrypt setup being included in development, that's what prevented the cookbook to work when I ran it in a VM (
ecf5870195
).I still think that the default recipe shouldn't include the nginx recipe since they're different responsabilities, but I fucked up by not replacing the recipe in the run list with the role that adds both recipes. I think in this case it would be easier to understand if these recipes had tests, then one would clearly be about deploying the app and starting it as a service, and another one about setting up an nginx reverse proxy in front of it
Why isn't that solved by the LE recipe to begin with? Isn't that what Chef environments are for?
I don't see how that changes anything. Also, generic node apps like that shouldn't require any special tests, because they should almost exclusively use DSLs from our other cookbooks that should be tested already. "Deploy node process xyz running on local port N with external domain xyz.com" shouldn't even require as much code as was necessary for this one imo.