Comments (13)
according to https://github.com/NixOS/nixops/blob/master/nix/route53-recordset.nix#L84 you can do
recordValues = [ resources.machines.machine_foo ];
(which is how i do it)
but as you asked specifically for the private IPv4:
according to https://github.com/NixOS/nixops/blob/master/nixops/resources/route53_recordset.py#L154
passing in a machine definition leads to usage of the publicIPv4 only and there doesnt seem to be a way to use the privateIPv4.
maybe this option is what you are looking for:
https://nixos.org/nixops/manual/#opt-deployment.route53.usePublicDNSName
you could always do resources.machines.machine_foo.networking.privateIPv4
but i don't know what public opinion says about this.
from nixops-aws.
@betaboon Your suggestion ("you could always do") fails with The option networking.privateIPv4 is used but not defined.
.
from nixops-aws.
@coretemp that should only happen during --build-only etc as it references the privateIPv4 of the deployed machine. Which prior do being created does not exist.
That's the downside of that approach.
from nixops-aws.
@betaboon Thanks for you reply. As you can see, I am not passing --build-only
:
nixops deploy -s localstate.nixops --kill-obsolete -d foo --allow-reboot --show-trace
from nixops-aws.
@coretemp could you share the expression of the machine and the route53RecordSet ?
from nixops-aws.
Any description of my_machine
would do (I expect even an empty one), so just pick the one from the NixOps manual or one of your own.
I think the easiest repro would be just trying to add an expression similar to the one below to one of your existing machines. It will return the same.
resources.route53RecordSets = {
a-record = { resources, nodes, ... }: {
zoneId = "ZSOME_VALID_ID";
domainName = ''www.example.com.'';
ttl = 300;
recordValues = [ (builtins.trace (resources.machines.my_machine.networking.privateIPv4) "1.1.1.1")];
recordType = "A";
};
};
This shouldn't even set the privateIP, it should merely print the value, but even that doesn't work.
from nixops-aws.
@coretemp what version of nixops are you running?
from nixops-aws.
master
from nixops-aws.
@coretemp i just tried that way.
can confirm that it doesn't work.
which is kind of confusing to me, as i use references to networking.privateIPv4 in different locations like that.
from nixops-aws.
I’ve run into the same issue. Does someone already know how this could be achieved?
from nixops-aws.
Would this help? NixOS/nixops#1054
from nixops-aws.
On this issue, in addition to resources.machines.my_machine.networking.privateIPv4
, I also tried nodes.<ecc-name>.config.networking.privateIPv4
without any success.
Any help ?
from nixops-aws.
Confirm, config.networking.privateIPv4
does not work. Tried with both the passed in config
and nodes.<machine>.config
from nixops-aws.
Related Issues (20)
- Root volume is considered as 'detached' using nixpkgs 20.03 HOT 6
- Record on route53 is not being created. HOT 17
- Route53RecordSet pointing at an elasticIP address fails to be created
- AWS c6g.large instance type is not supported
- Where are the docs? HOT 2
- [feature] Manage RDS passwords
- Add support for gp3 disk type HOT 2
- Stop/Start an RDS DB instance HOT 2
- invalid EC2 region ‘eu-south-1’ HOT 1
- Retirement of EC2-Classic
- [flakes] NIX_PATH impurity HOT 1
- Automatically generate python types HOT 1
- aarch64 instance support
- gatewayId can be null which fails in python
- Initial nix-build fails to build
- `KeyError: 'Ebs'` when deploying EC2 instance with `ebsBoot` HOT 1
- How do you use the s3 remote backend? HOT 7
- Status of the repository? HOT 1
- Port to python3
- Failure to provision hosts on spot market HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixops-aws.